(function(n,t,x){function F(a,b,c){return function(){try{return a.apply(this,arguments)}catch(d){c||ua(d,b)}}}function ua(a,b){var c;if(.01>Math.random())try{var d=a&&a.message||"";(c=-1>8,e&255])}function g(a,e){k.mergeArrays(a,[e&255])}function m(a,e){if(-1==ma.indexOf(e))return!0;g(a,e)}function r(a,e){for(e=Math.max(0,e|0);127>=7;k.mergeArrays(a,[e])}function u(a,e){255=e)return null;if(a.attributes)for(var b=a;b;){if(b.attributes.__ym_wv_ign)return null;b=b.parentElement}b=64;var c=0,h=w.getElementParent(a),d=h&&h[ba]?h[ba]:0;0>d&&(d=0);var f=a.nodeName.toUpperCase(),p=ta[f];p||(b|=2);var q=w.getElementNeighborPosition(a);q||(b|=4);var B=w.getElementRegion(a);(h=h?w.getElementRegion(h):null)&&B[0]==h[0]&&B[1]==h[1]&&B[2]==h[2]&&B[3]==h[3]&&(b|=8);Ga[e].pos=B[0]+"x"+B[1];Ga[e].size=B[2]+"x"+B[3];a.id&&"string"==typeof a.id&& (b|=32);(h=w.calcTextChecksum(a))&&(b|=16);var C=w.calcAttribChecksum(a);C&&(c|=2);a:{var A=w.getElementChildren(w.getElementParent(a),a.tagName);for(var H=0;Hf)return null;var p={mousemove:2,click:32,dblclick:33,mousedown:4,mouseup:30,touch:12}[e];if(!p)return null;var q=w.getElementXY(b);b=[];if(m(b,p))return null;r(b,a);r(b,f);r(b,Math.max(0,c[0]-q[0]));r(b,Math.max(0,c[1]-q[1]));/^mouse(up|down)|click$/.test(e)&&(a=h||d,g(b,2>a?1:a==(h?2:4)?4:2));return b}function h(a,e,b,c,h){var d=[];if(m(d,38))return null; r(d,a);l(d,e);g(d,b);a=c[ba];if(!a||0>a)a=0;r(d,a);g(d,h?1:0);return d}function e(a,e){var b;if(0==e.length)var c=b="";else 100>=e.length?(b=e,c=""):200>=e.length?(b=e.substr(0,100),c=e.substr(100)):(b=e.substr(0,97),c=e.substr(e.length-97));var h=[];if(m(h,29))return null;r(h,a);q(h,b);q(h,c);return h}function B(a){var e=[];if(m(e,27))return null;r(e,a);return e}function H(a){var e=[];g(e,14);r(e,a);return e}function A(a){var e=[];if(m(e,15))return null;r(e,a);return e}function ea(a,e){var b=[]; if(m(b,17))return null;r(b,a);r(b,e[ba]);return b}function Sa(a,e){var b=[];if(m(b,18))return null;r(b,a);r(b,e[ba]);return b}function La(a,e,b,c){var h=[];if(m(h,39))return null;r(h,a);r(h,e[ba]);u(h,String(b));g(h,c?1:0);return h}function Ta(a,e){var b=e[ba];if(0e||!/^INPUT|SELECT|TEXTAREA$/.test(a.nodeName)||!a.form||qa(a.form))return null;var b=w.getFormNumber(a.form);if(0>b)return null;var c="INPUT"==a.nodeName?{text:0,color:0,date:0,datetime:0,"datetime-local":0,email:0,number:0,range:0,search:0,tel:0,time:0,url:0,month:0,week:0,password:2,radio:3,checkbox:4,file:6,image:7}[a.type]:{SELECT:1,TEXTAREA:5}[a.nodeName];if("number"!=typeof c)return null;for(var h=-1,g=a.form.elements,d=g.length,f=0,p=0;fh)return null;g=[];if(m(g,7))return null;r(g,e);r(g,b);r(g,c);q(g,a.name||"");r(g,h);return g}function db(a,e){var b=w.getFormNumber(e);if(0>b)return null;for(var c=e.elements,h=c.length,g=[],d=0;d=e||96<=e&&105>=e||b&16)19==e&&4==(b&-17)&&(e=144),O(a,e,b|16),sa=!1,k.setTimeout(function(){sa=!0},1,"fvl.keyDown"),!(67==e&&b&4)||b&1||b&2||ca()}function ja(a){sa&&!Ma&&0!==a.which&&(O(a,a.charCode||a.keyCode,rb(a)),Ma=!0,k.setTimeout(function(){Ma=!1},1,"fvl.keyPress"))}function Z(){if(n.getSelection){try{var a= n.getSelection()}catch(Ob){return}var b=a.toString();var c=a.anchorNode}else t.selection&&t.selection.createRange&&(a=t.selection.createRange(),b=a.text,c=a.parentElement());if("string"==typeof b){try{for(;c&&1!=c.nodeType;)c=c.parentNode}catch(Ob){return}if(c){a=da(c).privateFlag||v(c,!0);c=c.getElementsByTagName("*");for(var h=0;h]+>/gi,""))?(""+a).replace(/^\s+/,"").replace(/\s+$/,""):""}function ub(a, b){var c;if(!a||!b)return!1;var d=[];for(c=0;cb||36E5d?c=g+1:h=g-1}return f},forof:function(a,b){a instanceof g.List?a.forEach(b):a instanceof m.KeyValue?a.forEach(b):Object(d.a)(a,b)},forin:function(a,b){Object(f.a)(a,b)},fastIterate:function(a,b){for(var e=0,c=a.length;ea.indexOf(e)&&a.push(e);return a},a)},removeFromArray:function(a){for(var b,e=arguments.length,c=Array(1=a.body.scrollHeight&&0===a.compatMode.indexOf("CSS1")?a.documentElement:a.body)},convertNode:function(a,b,c){var g=void 0===c?{doc:t,saveChildren:!0}:c;c=g.doc;g=g.saveChildren;c=c||a.ownerDocument;var d=c.createElement(b);f.IterableUtils.forof(a.attributes, function(a){d.setAttribute(a.name,a.value)});g&&f.IterableUtils.forof(a.childNodes,function(a){d.appendChild(a.cloneNode(!0))});return d},isBlankOrSameOriginIframe:function(a,b){var c=a.getAttribute("src"),d=a.getAttribute("sandbox");return d&&!d.match(/allow-same-origin/)||c&&"about:blank"!==c&&(c=g.StringUtils.parseURLNative(c).host)&&(b||n).location.host!==c?!1:!0},nodeIsRecordable:function(a){if(null!==a){var b=null!=a.getAttribute("metrika-ignore")||/-metrika-ignore/.test(a.className),c=null!= a.getAttribute("metrika-force")||/-metrika-force/.test(a.className);a=a.getAttribute("type");return c?!0:!b&&"password"!==a}return!1},contentSizeChanged:function(a,b){var c=a.ownerDocument?a.ownerDocument.defaultView:n,g={stopped:!1,height:null,width:null,runner:function(){if(!this.stopped){var g=null==a?{}:"function"===typeof a?a()||{}:a;var h=g.scrollHeight;g=g.scrollWidth;if(h!==this.height||g!==this.width)this.height=h,this.width=g,b({width:g,height:h});c&&c.requestAnimationFrame(this.runner.bind(this))}}, stop:function(){this.stopped=!0}};g.runner();return g},elementsFromPoint:function(a,b,c){c=c||t;var g=c.elementsFromPoint;if(g)return g.call(c,a,b);g=[];for(var d=[],h;(h=c.elementFromPoint(a,b))&&-1===g.indexOf(h);){g.push(h);var e=h.style;d.push({value:e.getPropertyValue("pointer-events"),priority:e.getPropertyPriority("pointer-events")});e.setProperty("pointer-events","none","important")}for(a=d.length;b=d[--a];)g[a].style.setProperty("pointer-events",b.value?b.value:"",b.priority);return g},nodeIndentLevel:function(a){for(var b= 0;a.parentNode;)a=a.parentNode,b++;return b},offsets:function(a,b){var c=void 0===b?{}:b,g=c.excludeBorder,d=void 0===g?!1:g;c=c.excludePadding;var h=void 0===c?!1:c;!1==="getBoundingClientRect"in a&&("documentElement"in a?a=a.documentElement:"document"in a&&(a=a.document.documentElement));var e=(a.ownerDocument||t).defaultView||n,f=a.getBoundingClientRect();c=f.top;g=f.right;var l=f.bottom;f=f.left;if(d||h){e=e.getComputedStyle(a);if(d){d=e.borderRightWidth;var m=e.borderBottomWidth,r=e.borderLeftWidth; c+=parseInt(e.borderTopWidth||"0",10);g+=parseInt(d||"0",10);l+=parseInt(m||"0",10);f+=parseInt(r||"0",10)}h&&(h=e.paddingRight,d=e.paddingBottom,m=e.paddingLeft,c+=parseInt(e.paddingTop||"0",10),g+=parseInt(h||"0",10),l+=parseInt(d||"0",10),f+=parseInt(m||"0",10))}return{top:c,right:g,bottom:l,left:f}},nodeIsInTree:function(a){if(this.isDOMNode(a)){var b=a.ownerDocument;if(null!=b)return b.documentElement.contains(a)}return!1},waitForNode:function(a,b,c){var g=this;void 0===c&&(c=500);var d={disconnect:function(){}}; if(g.nodeIsInTree(a))b(!0);else{var h=a.ownerDocument||t,e=new MutationObserver(function(){g.nodeIsInTree(a)&&(b(!0),e.disconnect())});e.observe(h.documentElement,{subtree:!0,childList:!0});var f=isFinite(c)?G(function(){g.nodeIsInTree(a)||(b(!1),e.disconnect())},c):x;d.disconnect=function(){f&&clearTimeout(f);e.disconnect()}}return d},createElement:function(a,b,c){c=c||t;var g=c.createElement(a);f.IterableUtils.forin(b,function(a){var c=b[a];"style"===a?l.ObjectUtils.assign(g[a],c):g[a]=c});return g}, matchesSelector:function(a,b){var c=f.IterableUtils.find(["matches","webkitMatchesSelector","mozMatchesSelector","msMatchesSelector","oMatchesSelector"],function(a){return a in t.body});this.matchesSelector=function(a,b){if(c){if(null==a||null==a.ownerDocument)return!1;try{if(c in a)return a[c](b)}catch(h){}}return!1};return this.matchesSelector(a,b)},closestParent:function(a,b,c){void 0===c&&(c=!1);for(a=c&&!this.isTextNode(a)?a:a.parentNode;a;){if(a&&this.matchesSelector(a,b))return a;a=a.parentNode}return null}, isTextNode:function(a){return 0<=[this.NodeTypes.TEXT_NODE,this.NodeTypes.COMMENT_NODE].indexOf(a.nodeType)},isChildOf:function(a,b,c){void 0===c&&(c=!1);return null!=this.closestParent(a,b,c)},copyAttributes:function(a,b){f.IterableUtils.forof(a.attributes,function(c){try{b.setAttribute(c.name,c.value)}catch(C){d.a.console.warn("Can't copy attribute ["+c.name+"\x3d"+c.value+"]",{sourceNode:a})}});return b},isHiddenContent:function(a){if(null==a)return!1;if("#text"===a.nodeName)return this.isHiddenContent(a.parentNode); if(/ym-hidden-content/.test(a.className))return!1;if(/ym-hide-content/.test(a.className))return!0;var b=this.matchesSelector(a,".ym-hide-content *");return b&&(/ym-show-content/.test(a.className)||this.matchesSelector(a,".ym-hide-content .ym-show-content *"))?!1:b}}},function(a,b,c){c.d(b,"b",function(){return q});c.d(b,"a",function(){return C});a=c(33);var d=c.n(a);a=c(5);var f=c.n(a);a=c(13);var l=c(2),g=c(0),m=c(10),r=c(16),u=c(4);c=a.a.DOMIndexer;var q=c.IGNORED_NODES,C=c.IGNORED_ATTRIBUTES,p= c.SKIPPED_ATTRIBUTES,h=c.EXTRA_ATTRIBUTES,e=[],B={},H={INPUT:function(a,b){var e=f()({},b);"checkbox"===b.type||"radio"===b.type?a.checked?b.checked="checked":delete b.checked:e.value=a.value;return e},IMG:function(a,b){var e=f()({},b);a.currentSrc&&(e.src=a.currentSrc||b.src);return e}},A=function(a){if(null==a)return!1;a=a.nodeType;return a===m.DOMUtils.NodeTypes.TEXT_NODE||a===m.DOMUtils.NodeTypes.COMMENT_NODE},k=function da(a,b){var e=[];if("function"===typeof b){var c=b(a);null!=c&&c!==NodeFilter.FILTER_ACCEPT|| e.push(a)}else e.push(a);if(a.childNodes&&0=arguments.length?x:arguments[2]]}):this.url}}}return x}}},function(a,b,c){b.a=function(a,b,c){void 0===c&&(c=!1);var g=2===b.length;if(a&&b instanceof Function)for(var d in a)if(a.hasOwnProperty(d)||!0===c){var f=g?b(d,a[d]):b(d);if(!0!==f&&!1===f)break}}},function(a,b,c){(function(a,c){var d=new a;b.a={throttledFunctions:d,invokeAll:function(a){c.fastIterate(d,function(b,c){c.invoke.call(a)})}, create:function(a,b){var g=void 0===b?{}:b,f=g.timeout,l=void 0===f?0:f;f=g.immediateFirstRun;var m=void 0===f?!1:f;g=g.context;var p=!0,h=null,e=null,B=null,H=null,A=!1,k=null,n=null;g={invoke:function(){var b=this.context||this;B!==h&&(H=c.now(),B=h,a.call(b,{object:h,prevObject:null,timeDifff:0,args:n}))},run:function(b){var g=this.context||this;m&&(clearTimeout(k),k=G(function(){return p=!0},l));if(!A){h=b;for(var d=arguments.length,f=Array(1=l?(A=!1,H=c.now(),B!==h&&(e=B,B=h,a.call(g,{object:h,prevObject:e,timeDiff:b,args:n}))):G(za)}))}},context:void 0===g?null:g,call:function(){var a;(a=this.run).call.apply(a,arguments)}};d.set(a,g);return g},setContext:function(a,b){if(d.has(a)){var c=d.get(a);null==c.context&&(c.context=b)}}}}).call(this,c(12)["default"],c(7)["default"])},function(a,b,c){c.d(b,"a",function(){return q}); a=c(13);b=c(12);var d=c(10),f=c(18),l=new b.KeyValue,g=String.fromCharCode(8226);a=a.a.captorsConfig.input.PD();c=a.suspiciousWords;a=a.placeholderSuspiciousWords;var m=new RegExp("("+c.join("|")+")","i"),r=new RegExp("("+c.concat(a).join("|")+")","i"),u=/color|radio|checkbox|date|datetime-local|email|month|number|password|range|search|tel|text|time|url|week/i,q={isValidType:function(a){return u.test(a)},isValidNode:function(a){var b=a.nodeName;a=a.type;return"INPUT"===b?!a||q.isValidType(a):/textarea|select|progress/i.test(b)}, isPrivateInformationField:function(a){var b=a.placeholder;return[a.className,a.id,a.name].reduce(function(a,b){return a||m.test(b)},!1)||r.test(b)},isIgnored:function(a){return/password/i.test(a.type)||/ym-disable-keys/i.test(a.className)||d.DOMUtils.isHiddenContent(a)?!0:!1},isRecordable:function(a){return this.matchesClass(a.className,"ym-record-keys")?!0:!1},matchesClass:function(a,b){return(new RegExp(b,"i")).test(a)},isAllowed:function(a,b){void 0===b&&(b=!1);return b?!0===q.isRecordable(a): !1===q.isIgnored(a)},isChanged:function(a,b){var c=!0;if(l.has(a)){var e=l.get(a);e&&(c=b!==e[0])}c&&l.set(a,[b]);return c},validate:function(a,b){var c=b||{},e=c.isEU,g=c.recording.keysMode;c=q.isRecordable(a);var d=q.isPrivateInformationField(a);e=q.isAllowed(a,"explicit"===g)&&(!e||!d);return{forceRecord:c,isPrivate:d,isAllowed:e}},encode:function(a){void 0===a&&(a="");return a&&0=q&&(C=Date.now(),a.apply(f,l)),h=e(A))};c.stop=function(){p=!0};c();return c}}},function(a,b,c){a.exports=c(89)},function(a,b,c){c.r(b);a=c(3).a.Symbol;c=a instanceof Function&&a.iterator?a:c(68);b["default"]=c},function(a,b,c){(function(a){var d=c(29),l=function(a,b,c){a.forEach(function(a,g){2===b.length?c?b(a,g):b([a,g]):b(a)})};b.a=function(b,c){var g=2===c.length;if(b&&c instanceof Function)if(null!=b[a.iterator])if(g)if(b instanceof Array){g=0;for(var f=b.length;g=g.length)break;var C=g[m++]}else{m=g.next();if(m.done)break;C=m.value}C=c(C[0],C[1]);if(!0!==C&&!1===C)break}}else for(g=b,f=Array.isArray(g),m=0,g=f?g:g[a.iterator]();;){if(f){if(m>=g.length)break;C=g[m++]}else{m=g.next();if(m.done)break;C=m.value}C=c(C);if(!0!==C&&!1===C)break}else if("forEach"in b)l(b,c,g);else if(b instanceof Array)for(f=Object(d.a)(b),m=0;mc||f>g?(c/=d,g/=f,Math.min(1,Math.max(c>g?.1:.35,Math.min(c,g)))):1},viewportGetter:function(a){a=a||n.document;var b=a.defaultView,c=function(c){/Trident|MSIE/.test(b.navigator.userAgent)?a.body.parentNode&&a.body.parentNode.appendChild(c):a.body.appendChild(c)},g=a.querySelector("ym-measure.ym-viewport"),d=a.querySelector("ym-measure.ym-zoom");null===g&&(g=f.DOMUtils.createElement("ym-measure",{className:"ym-viewport",style:{display:"block",top:0,right:0, bottom:0,left:0,position:"fixed",transform:"translate(0, -100%)",msTransform:"translate(0, -100%)",webkitTransform:"translate(0, -100%)",transformOrigin:"0 0",msTransformOrigin:"0 0",webkitTransformOrigin:"0 0"}}),c(g));null===d&&(d=f.DOMUtils.createElement("ym-measure",{className:"ym-zoom",style:{bottom:"100%",position:"fixed",width:"100vw"}}),c(d));return Object.defineProperties({getSize:function(a){void 0===a&&(a=1);var b=g;return{width:Math.round(b.clientWidth*a),height:Math.round(b.clientHeight* a)}}},{zoomLevel:{get:function(){try{return parseFloat((d.clientWidth/b.innerWidth).toFixed(3))}catch(C){return 1}},configurable:!0,enumerable:!0},scrollingElement:{get:function(){return a.scrollingElement||(a.documentElement.scrollHeight>a.body.scrollHeight&&0===a.compatMode.indexOf("CSS1")?a.documentElement:a.body)},configurable:!0,enumerable:!0},orientation:{get:function(){var a=ka?ka.orientation||ka.mozOrientation||ka.msOrientation:null;return a&&a.angle||0},configurable:!0,enumerable:!0}})}}}, function(a,b,c){(function(a,f,l){c.d(b,"b",function(){return p});var g=c(1);g=c.n(g);var d=c(15),r="2d webgl experimental-webgl webgl2 experimental-webgl2 bitmaprenderer".split(" "),u=function(){var a=t.createElement("canvas");a.proxy=!1;return r.filter(function(b){return null!=a.getContext(b)})}(),q=new a,C=HTMLCanvasElement.prototype.getContext,p=function(a){var b=t.createElement("canvas");b.width=a.width;b.height=a.height;b.proxy=!1;b.getContext("2d").drawImage(a,0,0);return b.toDataURL("image/jpeg")}, h=function(a){a=a.constructor;if(q.has(a))return q.has(a);var b=f.apiMock(a);q.set(a,b);return b};a=function(){function a(){}a.mock=function(){if(!this.mocked){this.mocked=!0;HTMLCanvasElement.prototype.getContext=function(b){var c=C.call(this,b);if(null!==c)return!1!==this.proxy&&0<=u.indexOf(b)&&a.update(c),c};var b=t.querySelectorAll("canvas");f.forof(b,function(a){f.forof(r,a.getContext.bind(a))})}};a.remove=function(){this.mocked&&(this.mocked=!1,this.events.off(),HTMLCanvasElement.prototype.getContext= C)};a.update=function(b){if(!1===a.proxies.has(b)){var c=this,e=b.canvas,g=Object.getPrototypeOf(b),d=h(b);f.nodeIsRecordable(e)&&d.properties&&(f.forof(d.properties,function(a){var e=Object.getOwnPropertyDescriptor(g,a),h=f.combine(e);e.get&&(h.get=e.get.bind(b));e.set&&(h.set=function(h){c.setterInvoked(b,a,h);return e.set.call(b,h)});Object.defineProperty(b,a,h)}),f.forof(d.methods,function(a){var e=b[a];Object.defineProperty(b,a,{configurable:!0,value:function(){for(var h=arguments.length,g=Array(h), d=0;dc);)c=b._executeJob(!b.jobExecutionStartStamp);b.jobExecutionStartStamp=null;b._executeJobsAsync()})}else this.isRunning=!1};c._executeJob=function(a){void 0===a&&(a=!0);a&&(this.jobExecutionStartStamp=(new Date).valueOf());a=this.jobs.shift();try{a()}catch(C){m["default"].log("Error occurred when running job"),m["default"].log(C),m["default"].log(a.toString())}return(new Date).valueOf()-this.jobExecutionStartStamp};l()(b,[{key:"hasJobs",get:function(){return 0h?"css"===c.type?(h=((f.getResponseHeader("Content-Type")||"").split("; ").map(function(a){return a.split("\x3d")}).find(function(a){return"charset"===a[0]})||["charset","UTF-8"])[1],p.addEventListener("load",function(b){a({result:p.result})}),p.readAsText(f.response,h)):(h=function(a){switch(c.type){case "json":return JSON.parse(a);case "html":return d.DocumentUtils.initDocument({html:a});default:return a}}(f.responseText),a({result:h})):b(Error(h+" "+f.statusText)))}); f.addEventListener("error",b);f.open(c.method.toUpperCase(),c.url);Object(g.a)(c.headers,function(a,b){f.setRequestHeader(a,b)});f.send(c.data?JSON.stringify(c.data):x)}))["catch"](function(a){return{}})}}).call(this,c(22).Promise)},function(a,b,c){(function(a,c){var d=function(){if("undefined"!==typeof n)return n;if("undefined"!==typeof global)return global;if("undefined"!==typeof self)return self}(),g=function(){return Date.now()},f=function(b){return b?(b=this._getTime()-b,0>b&&a.warn("Invalid stamp: "+ b),b):0},r=function(a,b){var c;(c=d.console).log.apply(c,a.concat([b+"ms"]))};b.a=function(a){void 0===a&&(a={});var b=a.getStamp||f,c=a.printLog||r,d={start:function(){var a=this._getTime();this._initializedAt=this._initializedAt||a;this._startedAt=a;return d},stamp:function(){return this._getStamp(this._startedAt)},stampSinceCreated:function(){return this._getStamp(this._initializedAt)},reset:function(){return this.start()},log:function(){for(var a=arguments.length,b=Array(a),g=0;g=this._options.loopMaxNumber&&this._stopLoop());if(!0===b)this._stopLoop(),this._destroyBait(),this.emitEvent(!0), !0===a&&(this._var.checking=!1);else if(null===this._var.loop||!1===a)this._destroyBait(),this.emitEvent(!1),!0===a&&(this._var.checking=!1);return b};b._stopLoop=function(){clearInterval(this._var.loop);this._var.loop=null;this._var.loopNumber=0;!0===this._options.debug&&this._log("_stopLoop","A loop has been stopped")};b.emitEvent=function(a){!0===this._options.debug&&this._log("emitEvent","An event with a "+(!0===a?"positive":"negative")+" detection was called");a=this._var.event[!0===a?"detected": "notDetected"];for(var b in a)if(!0===this._options.debug&&this._log("emitEvent","Call function "+(parseInt(b,10)+1)+"/"+a.length),a.hasOwnProperty(b))a[b]();!0===this._options.resetOnEnd&&this.clearEvent();return this};b.clearEvent=function(){this._var.event.detected=[];this._var.event.notDetected=[];!0===this._options.debug&&this._log("clearEvent","The event list has been cleared")};b.on=function(a,b){this._var.event[!0===a?"detected":"notDetected"].push(b);!0===this._options.debug&&this._log("on", 'A type of event "'+(!0===a?"detected":"notDetected")+'" was added');return this};b.onDetected=function(a){return this.on(!0,a)};b.onNotDetected=function(a){return this.on(!1,a)};return a}();b.a=c},function(a,b,c){a=function(){function a(a,b){void 0===a&&(a="body");void 0===b&&(b={});this.root="string"===typeof a?t.querySelector(a):a;this.ctx=b;var c=-1!==navigator.appVersion.indexOf("Mac")?"macos":"other";this.OS=c;this.modifierCodes={91:"super",93:"super",224:"super",18:"alt",17:"ctrl",16:"shift", 9:"tab",8:"backspace",46:"delete"};this.keyOrder={"super":1,ctrl:2,alt:3,shift:4,tab:5,"delete":6,backspace:6};this.singleKeys=[4,9,8,32,37,38,39,40,46];this.keyDict={macos:{91:"\x26#8984;",93:"\x26#8984;",224:"\x26#8984;",18:"\x26#8997;",17:"\x26#8963;",16:"\x26#8679;",9:"\x26#8677;",8:"\x26#9003;",46:"\x26#9003;"},other:{91:"\x26#xff;",93:"\x26#xff;",224:"\x26#xff;",18:"Alt",17:"Ctrl",16:"Shift",9:"Tab",8:"Backspace",46:"Delete"},multi:{32:"SPACEBAR",37:"\x26larr;",38:"\x26uarr;",39:"\x26rarr;", 40:"\x26darr;",13:"Enter"}};this.initialModifier=null;this.modifierPressed=0;this.events=[];this.modifiers={};this.captors=[];this.filters=[];this.keyStroke=[];this.holding=[];this.initHandler()}var b=a.prototype;b.onCapture=function(a){"function"===typeof a&&0>this.captors.indexOf(a)&&this.captors.push(a)};b.addElementFilter=function(a){"function"===typeof a&&0>this.captors.indexOf(a)&&this.filters.push(a)};b.applyFilters=function(a){var b=this;return this.filters.reduce(function(c,d){return!0=== c?c&&d.call(b,a):!1},!0)};b.initHandler=function(){this.attachEvent("keydown",this.keydownHandler);this.attachEvent("keyup",this.keyupHandler)};b.getKeystroke=function(a){var b=this,c=this.keyOrder;return a.map(function(a){var c=a.keyCode,d=b.modifierCodes[a.keyCode],g=b.getKeySymbol(a);return{id:c,key:b.getKeySymbol(a),isMeta:!!d&&/^&#/.test(g),modifier:d}}).sort(function(a,b){return(c[a.modifier]||100)-(c[b.modifier]||100)})};b.getKeySymbol=function(a){return this.keyDict[this.OS][a.keyCode]||this.keyDict.multi[a.keyCode]|| String.fromCharCode(a.keyCode)};b.startCapture=function(a){this.initialModifier=a;this.pushKey(a);this.cancelCapture()};b.sendKeys=function(a,b){var c=this;void 0===b&&(b=!1);if(1this.held(a.keyCode)&&(this.holding.push(a.keyCode),this.isModifier(a.keyCode)&&!this.isModifierPressed()?(this.modifierPressed+=1,this.startCapture(a),this.reset()):this.isModifierPressed()?(this.cancelReset(),this.pushKey(a),this.endCapture()):(this.resetImmediate(),this.pushKey(a)))};b.keyupHandler=function(a){if(this.applyFilters(a.target)){var b=this.isModifier(a.keyCode),c=this.held(a.keyCode);0<=c&&this.holding.splice(c, 1);b&&this.isModifierPressed()&&(this.modifierPressed=0,this.holding.length=0);1===this.keyStroke.length&&(b=this.keyStroke[0],0<=this.singleKeys.indexOf(b.keyCode)&&(this.sendKeys([b],!0),this.resetImmediate()));this.removeKey(a);clearTimeout(this._endCapture)}};b.attachEvent=function(a,b){var c=this;if("function"===typeof b){var d=this.ctx.attachEvent(this.ctx.document,a,function(a){(c.root&&c.root.contains(a.target)||a.target===c.root)&&c.ctx.errorLogger(function(){b.call(c,a)})},!0);this.events.push(function(){c.ctx.removeEvent(d)})}}; b.held=function(a){return this.holding.indexOf(a)};b.isModifier=function(a){return null!=this.modifierCodes[a]};b.isModifierPressed=function(){return 0=b;!1===k&&(b?"function"===typeof f&&f():C=G(Ha,100))}})()};c.subscribe=function(a,b){var c=this._createSubscriptionsGroup(a);if(!1===this._isSubscribed(c,b))c.push(b);else throw Error("This callback has already been subscribed to "+ a);};c.unsubscribe=function(b,c){var e=this._getSubcribers(b);!0===this._isSubscribed(e,c)&&a.removeFromArray(e,c)};c.unsubscribeAll=function(a){this._getSubcribers(a).splice(0)};c.listen=function(a){var b=this;this._attachEvent("message",a);return function(){return b._removeEvent("message",a)}};c.listenOnce=function(a,b){var c=this;b=b||this.window;var h=function(b){!1!==a(b)&&d()},d=function(){c._removeEvent("message",h,b)};this._attachEvent("message",h,b);return d};c._attachEvent=function(a,b, c){var e=this;(c||this.window).addEventListener(a,b);return function(){return e._removeEvent(a,b)}};c._createSubscriptionsGroup=function(a){return this._getSubcribers(a)};c._isSubscribed=function(a,b){return b&&0<=a.indexOf(b)};c._removeEvent=function(a,b,c){(c||this.window).removeEventListener(a,b)};c._getSubcribers=function(a){this.subscriptions[a]||(this.subscriptions[a]=[]);return this.subscriptions[a]};c._sendMessage=function(a){var b=void 0===a?{}:a;a=b.target;var c=b.flags;c=void 0===c?[]: c;b={_ym_messenger:!0,_ym_identifier:this.identifier,type:b.type,data:b.data};if(c&&0=arguments.length?x:arguments[2],{location:c});return g(a)}));return d}, patchURL:function(a,b){var c=this,e=void 0===b?{}:b,h=e.location,d=void 0===h?null:h;e=e.split;var g=void 0===e?!1:e;return"string"===typeof a?function(a){return g?a.split(","):[a]}(a).reduce(function(a,b){var e=b.trim().split(" "),h=e[0];e=e.slice(1);h=c.applyPatch(h,d);a.push([h].concat(e).join(" "));return a},[]).join(", "):a},applyPatch:function(b,c){var e=u.test("relativePath",b),h=this.getRelativeLocation(c),d=h.host,g=h.protocol;h=h.path||h.pathname||"";e=e?this.resolvePath(b,h):b;if(0<=H.indexOf(e))return e; if(p.has(e))return k.get(e);h=b;u.resetAll();if(u.test("dataurlTest",b)||u.test("selectorTest",b))return b;u.test("protocolMissing",b)&&(h=u.test("protocolIncomplete",b)?b.replace(u.get("protocolIncomplete"),g+"//"):g+"//"+(d+"/"+e).replace(/\/\/+/,"/"));p.set(b,h);/http[s]?/.test(h)?(d=h,u.test("proxiedURL",d)?h=d:(q.isWhitelisted?(g=q.isWhitelisted(d))&&a.warn("Whitelisted: "+d):g=!1,h=g?d:(g=q.proxy)&&u.test("resourceFinder",g)?g.replace(u.get("resourceFinder"),d.replace(/&/g,"%26")):d),H.push(h), k.set(b,h),d=h):(H.push(b),k.set(b,h),d=b);return q.noEncode?decodeURIComponent(d):d},getRelativeLocation:function(a){var b=u.test("relativePath",a);return a?b?(b=m.StringUtils.parseURL(e(a)),a=this.resolvePath(a,this.location.protocol+"//"+this.location.host+(this.location.path||this.location.pathname||"")),b||r.ObjectUtils.assign({},this.location,{path:a})):r.ObjectUtils.assign({},this.location,{path:a}):this.location},resolvePath:function(a,b){if(/^\//.test(a)||/^https?:\/\//.test(a))return a; for(var c=(b.replace(/\/[^\/]*$/,"")+"/"+a).split("/"),e=[],h=0,d=c.length;hc&&(G(e,300),c+=1))}.bind(this);e()};return{getValue:function(){var a=this.viewport.getSize(1),b=a.width;a=a.height;var c=this.viewport.scrollingElement;if(0b&&G(function(){return c._releaseCaptor(a)},b))};d._releaseCaptor=function(a){a&&this._blockedCaptors.has(a)&&this._blockedCaptors["delete"](a)}; d._executeCaptor=function(a,b){a&&"function"===typeof b&&(this._blockedCaptors&&this._blockedCaptors.has(a)?this._releaseCaptor(a):b())};d._getEventObject=function(a,b,c,e){b="number"===typeof b?b:b?this.findNode(b)||-1:null;return{stamp:this._stampForType(a,e),type:a,target:b,meta:c||null}};d._getMutationObject=function(a,b,c){void 0===c&&(c=0);return{stamp:b,meta:{changes:a,index:c}}};d._stampForType=function(a,b){var c=b||this.stamp;return aa[a]=c+(c===aa[a]?1:0)};d._getInitialScroll=function(){var a= [],b=this.document.body,c=this._getScroll(b);null!=c&&a.push(c);a.concat(this._getScrollForEachNode(b.childNodes));return a};d._getScrollForEachNode=function(a){var b=this;return A.IterableUtils.toArray(a).reduce(function(a,c){var e=b._getScroll(c);null!=e&&a.push(e);0=this.options.maxSize||this.hitDuration>=this.options.maxDuration)&&this.stop()}; d.sendSnapshot=function(){var a=this;return this.snapshot.get({onSuccess:function(b){a.savePageSnapshot(b);return!0},onFail:function(){return!1}})};d._createSnapshot=function(){var a=this,b=f.resolve().then(function(){return{content:a.summary.html}})["catch"](function(a){return{error:a}}).then(function(a){return{content:a.content,error:a.error}});this.snapshot={get:function(c){var e=c.onSuccess,d=c.onFail;return b.then(function(b){var c=b.error;b=b.content;c?(b=d.call(a,b,c),a.fatal("invalid-snapshot", c)):b=e.call(a,b);return b})}}};d.savePageSnapshot=function(a){if(this.indexer&&!this.indexer.disabled&&!this.snapshotSent)return this.snapshotSent=!0,a=q()({content:a,frameId:0,tabId:this.tabId,recordStamp:(new Date).getTime()},this.page),this._saveChanges({page:a})};d._sendInitialEvents=function(){var a=this,b=[],c=function(){var b=a.captors.get("resize");return b&&b.getValue.call(a)}(),e=this.viewport.scrollingElement,d=this._getInitialScroll().map(function(b){var c=b.scroll,d=c[0];c=c[1];b=a.indexer.find(b.target); b=b===a.document||b===a.window?e:b;return a._getEventObject("scroll",b,{x:c,y:d,page:b===e})});c&&b.push(c);b.push.apply(b,d);this._saveChanges({events:b})};d._sendPreCachedData=function(a){a=(void 0===a?{}:a).force;a=void 0===a?!1:a;if(this.precache.length)for(var b;null!=(b=this.precache.shift());)this._request(b[0],b[1],a)};d._connectToParent=function(){this._sendMessage("connect",{id:this._identifier})};d._sendMessage=function(a,b){(ia?this.window.top:this.window).postMessage({type:a,data:b}, "*")};d._universalHandler=function(a,b){var c=this,e=(void 0===b?{}:b).extra,d=void 0===e?[]:e;return function(){for(var b=arguments.length,e=Array(b),h=0;harguments.length||"string"!==typeof a){var l=b;b=a;a=null}else l=arguments[2];if(null==a){var m=c=!0;var p=!1}else m=g.call(a,"c"),p=g.call(a,"e"),c=g.call(a,"w");m={value:b,configurable:m, enumerable:p,writable:c};return l?d(f(l),m):m}).gs=function(a,b,c,k){"string"!==typeof a&&(k=c,c=b,b=a,a=null);null==b?b=x:l(b)?null==c?c=x:l(c)||(k=c,c=x):(k=b,b=c=x);if(null==a){var m=!0;a=!1}else m=g.call(a,"c"),a=g.call(a,"e");b={get:b,set:c,configurable:m,enumerable:a};return k?d(f(k),b):b}},function(a,b,c){a.exports=c(73)()?Object.assign:c(74)},function(a,b,c){a.exports=function(){var a=Object.assign;if("function"!==typeof a)return!1;var b={foo:"raz"};a(b,{bar:"dwa"},{trzy:"trzy"});return"razdwatrzy"=== b.foo+b.bar+b.trzy}},function(a,b,c){var d=c(75),f=c(79),l=Math.max;a.exports=function(a,b){var c,g,m=l(arguments.length,2);a=Object(f(a));var k=function(d){try{a[d]=b[d]}catch(h){c||(c=h)}};for(g=1;ga[c]?b:a[c]}return b},random:function(a,b){void 0===a&&(a=0);return Math.round(Math.random()*b+a)}}}])["default"]}catch(a){Na={error:a,scope:"recoder"}}var k={mixin:function(a){var b,c;for(b=1;ba?"0":"")+a};y.getTimestamp=function(){var a=new Date;a=[a.getFullYear(),a.getMonth()+1,a.getDate(),a.getHours(),a.getMinutes(),a.getSeconds()];var b="",c;for(c=0;c+y.getMs()&&this.onFlush.call(this.onFlushCtx||this,this.dataFromStorage(a.data),a.meta,a.pnum);this.clear()},setWVType:function(a){this.wvType=a;this._sender.version=a},getFlushSize:function(){return this._data.length},mergeData:function(a,b){k.mergeArrays(a,b)},updateStamp:function(a,b){a.stamp!==x&&(b.stamp=a.stamp,"eof"!== a.type&&delete a.stamp)},append:function(a,b){this.mergeData(this._data,a);this._saveToStorageThrottled();this.active&&((b||this.getFlushSize()>=this.maxBufferSize||this.getFlushSize()===this.maxChunkSize)&&this._flush(b),this._flushTID||(this._flushTID=k.defer(this._flush,this.flushTimeout,this,[b],"DataBuffer._flush")))},activate:function(){this.active||(this.active=!0,this.append([]))},clear:function(){this._data.length=0;this._flushTID=null;this.storage&&this.storage.remove(this.storageKey)}, _flush:function(a){if(!this.getFlushSize())return this.clear(),!1;this.onFlush.call(this.onFlushCtx||this,this._data,this.meta,this._packetNumber,a);this._packetNumber++;this.clear()},dataFromStorage:function(a){return a},dataToStorage:function(a){return a},_saveToStorage:function(){this.storage&&this._data.length&&this.storage.set(this.storageKey,{data:this.dataToStorage(this._data),meta:this.meta,pnum:this._packetNumber,time:y.getMs()})}}),xb="ru ua by kz az kg lv md tj tm uz ee fr co.il com.ge com.am com.tr".split(" "), D={storage:{},init:function(){var a=this;F(function(){n.Ya=n.Ya||{};n.Ya._metrika=n.Ya._metrika||{};a.storage=n.Ya._metrika},"",!0)();return this},setSafe:function(a,b){var c=this;F(function(){c.storage[a]===x&&(c.storage[a]=b)},"",!0)();return this},set:function(a,b){F(function(){n.Ya._metrika[a]=b},"",!0)();return this},get:function(a,b){return F(function(){var c=n.Ya._metrika[a];return c===x?b:c},"",!0)()}};k.async=function(a,b,c){if(n.postMessage){var d="__ym__promise"+Math.random()+"_"+y.getMs(); var f=function(c){try{var g=c.data}catch(m){return}g===d&&(c.stopPropagation&&c.stopPropagation(),a.call(b),z.un(n,"message",f,null,{passive:!1}))};z.on(n,"message",f,null,{passive:!1,name:".async."+(c||"")});n.postMessage(d,"*")}else k.setTimeout(function(){a.call(b)},0)};var Vb=K.inherit({transports:[],globalConfig:D,postParams:[],isDisabled:function(){return this.globalConfig.get("oo")},send:function(a,b,c,d){var f=[a],l=this,g=c||function(){};l.isDisabled()?g.call(d):function u(a){if(a=f.length?c.blockNext()||u.call(this,a+1):c.request(f[p],b,function(a,b,c){a?g.call(d,b,c):k.async(function(){h.call(l,p+1)},this,"senderCall")},this)}).call(this,0)}catch(C){ua(C,"send by "+(c&&c.id)),u.call(this,a+1)}}.call(this,0)}}),Da={};k.keys=function(a){var b,c=[];for(b in a)a.hasOwnProperty(b)&&c.push(b);return c};k.map=function(a,b){var c, d=[];for(c=0;carguments.length&& (b=a,a=0);1>arguments.length&&(b=1073741824);return Math.floor(Math.random()*(b-a))+a};var Wa=wa.inherit({id:"form",index:2,enctype:"application/x-www-form-urlencoded",htmlfileOnly:!1,_initComponent:function(){Wa.superclass._initComponent.apply(this,arguments);"_htmlfile"in Wa.prototype||(Wa.prototype._htmlfile=this._createHtmlfile());this._doc=this._htmlfile||(this.htmlfileOnly?null:t)},request:function(a,b,c,d){var f=this._doc;if(!f)return c.call(d,!1);b=this._splitParams(b);var l="ifr"+k.random(); var g=f.createElement("div");g.style.position="absolute";g.style.left="-99999px";g.style.top="-99999px";var m=['\x3ciframe name\x3d"',l,'"\x3e\x3c/iframe\x3e','\x3cform action\x3d"',this._buildUrl(a,b.get),'" method\x3d"post" target\x3d"',l,'" enctype\x3d"',this.enctype,'"\x3e'];k.forEachKey(b.post,function(a){k.mergeArrays(m,['\x3cinput type\x3d"hidden" autocomplete\x3d"off" autocorrect\x3d"off"',' autocapitalize\x3d"off" spellcheck\x3d"false" name\x3d"',a,'"/\x3e'])});k.mergeArrays(m,["\x3c/form\x3e"]); g.innerHTML=m.join("");f.body.appendChild(g);var r=g.getElementsByTagName("form")[0];k.forEachKey(b.post,function(a,b){r[a].value=b});r.submit();k.setTimeout(function(){f.body.removeChild(g)},1E4,"TransportForm.request.2");return c.call(d,!0,"tf.request")},_createHtmlfile:function(){try{if(n.ActiveXObject){var a=new ActiveXObject("htmlfile");a.open();a.write("\x3chtml\x3e\x3cbody\x3e\x3c/body\x3e\x3c/html\x3e");a.close();return a}}catch(b){}return null}}),Xb=Wa.inherit({id:"htmlfile",index:3,htmlfileOnly:!0}), pa=wa.inherit({id:"img",index:4,request:function(a,b,c,d){a=this._buildUrl(a,b);var f=!1;b=t.createElement("img");c=c||function(){};b.onload=F(function(){f||(c.call(d,!0),f=!0)},"TransportImage.request");b.onerror=F(function(){f||(c.call(d,!1),f=!0)},"TransportImage.request");b.src=a;this.timeout&&k.setTimeout(function(){f||(c.call(d,!1),f=!0)},this.timeout,"ti.request")}}),aa={stringify:function(a){try{var b=JSON.stringify(a)}catch(c){}return k.inArray(["{}",x],b)?"null":b}};k.toJSON=function(a){var b; if(a===x)return"";if(null===a)return"null";switch(a.constructor){case Boolean:return a.toString();case Number:return isFinite(a)?a.toString():"null";case String:return'"'+a.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\n/g,"\\n").replace(/\r/g,"\\r")+'"';case Array:var c=[];var d=0;for(b=a.length;d>>0};k.getTld=function(){if(!this._tld){var a= L.hostname.split(".");this._tld=a[a.length-1]}return this._tld};var na={abc:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789",tail:"+/\x3d",tailSafe:"*-_",encode:function(a,b){var c=(na.abc+(b?na.tailSafe:na.tail)).split(""),d=a.length,f=[],l=d-d%3,g;for(g=0;g>18&63],c[m>>12&63],c[m>>6&63],c[m&63]])}switch(d-l){case 1:m=a[l]<<4;k.mergeArrays(f,[c[m>>6&63],c[m&63],c[64],c[64]]);break;case 2:m=(a[l]<<10)+(a[l+1]<<2),k.mergeArrays(f, [c[m>>12&63],c[m>>6&63],c[m&63],c[64]])}return f.join("")},decode:function(a,b){for(var c=na.abc+(b?na.tailSafe:na.tail),d=0,f="",l,g,m,r,k;a.length%4;)a+="\x3d";do{l=c.indexOf(a.charAt(d++));g=c.indexOf(a.charAt(d++));r=c.indexOf(a.charAt(d++));k=c.indexOf(a.charAt(d++));if(0>l||0>g||0>r||0>k)return null;m=l<<18|g<<12|r<<6|k;l=m>>16&255;g=m>>8&255;m&=255;f=64==r?f+String.fromCharCode(l):64==k?f+String.fromCharCode(l,g):f+String.fromCharCode(l,g,m)}while(df?b.push(f):(127f?b.push(f>>6|192):(b.push(f>>12|224),b.push(f>>6&63|128)),b.push(f&63|128))}return b}},Q=K.inherit({counterId:"",onlyCurrentDomain:!1,skipPrefix:!1,_initComponent:function(){var a;Q.superclass._initComponent.apply(this,arguments);this._domain=null;if(!this.onlyCurrentDomain){var b=n.location.host.split(".");for(a=2;;)if(a<=b.length){if(this._domain="."+b.slice(-a).join("."),a++,this.isEnabled())break}else{this._domain= null;break}}},create:function(a,b,c){a=[this._prepareName(a)+"\x3d"+encodeURIComponent(b)];c&&(b=new Date,b.setTime(b.getTime()+6E4*c),a.push("expires\x3d"+b.toGMTString()));this._domain&&a.push("domain\x3d"+this._domain);a.push("path\x3d/");try{t.cookie=a.join(";")}catch(d){}},read:function(a){try{var b=t.cookie}catch(c){}return b&&b.match(new RegExp("(?:^|;\\s*)"+this._prepareName(a)+"\x3d([^;]*)"))?decodeURIComponent(RegExp.$1):null},erase:function(a){this.create(a,"",-1)},isEnabled:function(){this.create("metrika_enabled", "1",60);var a=!!this.read("metrika_enabled");this.erase("metrika_enabled");return a},_prepareName:function(a){return(this.skipPrefix?"":"_ym_")+a+(this.counterId?"_"+this.counterId:"")}});Q.get=function(a){return(new Q({onlyCurrentDomain:!0})).read(a)};Q.set=function(a,b,c){return(new Q({onlyCurrentDomain:!0})).create(a,b,c)};Q.isEnabled=function(){return(new Q({onlyCurrentDomain:!0})).isEnabled()};k.isNativeFunction=function(a,b){return a&&"function"===typeof a?(new RegExp("function\\s*"+b+"\\s*\\(\\)\\s*\\{\\s*\\[native[\\s-]code\\]\\s*\\}", "i")).test(a.toString()):!1};var w={removeNode:function(a){var b=a&&a.parentNode;b&&b.removeChild(a)}};v.isSafariWebView=F(function(){var a=navigator.userAgent||"";return navigator.vendor&&-1=a)}return b},"isFF");var Ea={_storage:new la,globalConfig:null,key:"zzlc",userInfo:"",updateInfo:function(a){k.forEachKey(this.getInfoFlags(),function(b,c){var d=c.call(this);d&&(a[b]=d)},this);return a},getYm:function(){var a=this._storage.get(this.ymKey)||{};return a.resp?a.resp:this.genYm.call(this, a)},getYmD:function(){var a=this._storage.get(this.ymKey)||{};if(a.dmn)return a.dmn},getZZ:function(){return this._storage.get(this.key)?this._storage.get(this.key):this.zz},getPP:function(){return this.globalConfig&&this.globalConfig.get("pp")?this.globalConfig.get("pp"):this.pp},getPU:function(){return this.globalConfig&&this.globalConfig.get("pu")?this.globalConfig.get("pu"):this.pu},getFip:function(){if(this._storage.get(this.fipKey))return this._storage.get(this.fipKey)},getInfoFlags:function(){return{pi:this.getYm, pid:this.getYmD,zz:this.getZZ,pp:this.getPP,pu:this.getPU,fip:this.getFip}},checkVersion:function(){if(this.globalConfig.get("isEU"))return 1;var a=v.getMacOSVersion();return!((v.isIOS()||10<=a[0]&&13<=a[2])&&v.isSafari())||v.isSafariWebView()},noop:function(){},genPu:function(a){var b=k.fnv32a(n.location.host)+this.userInfo;this.pu=b;a.set("pu",b);return b},ymKey:"pi",genYm:function(a){var b=this,c=I(),d=y.getMinutes();if(!this.checkVersion()&&n.fetch&&this._storage.get("retryReqs")&&"yandex.ru"== c.hostname&&"/"==c.pathname&&!(a.lt&&a.lt+1440>d)){a.lt=d;c=["auto.ru","thequestion.ru","www.kinopoisk.ru"];var f=c[k.random(0,c.length)];fetch("//"+f+"/daiku",{credentials:"include"}).then(function(a){return a.json()}).then(function(c){c&&(a.resp=c._ym_uid,a.dmn=na.encode(Oa.encode(f)),b._storage.set(b.ymKey,a))})["catch"](function(){b._storage.set(b.ymKey,a)})}},initPU:function(a,b){var c=this,d=v.isFF(68);this.globalConfig=b;b.get("pu")!==x||this.checkVersion()&&!d||(b.setSafe("pu",null),a.addHandler("gpu-get", function(){return{type:"gpu-get",pu:b.get("pu")}},this),n.opener?(k.setTimeout(function(){c.genPu(b)},200,"pu"),a.sendToIframe(n.opener,{type:"gpu-get"},this.handleGpu,this)):this.genPu(b))},handleGpu:function(a){if(a=a.pu)this.pu=a,this.globalConfig.set("pu",a)},onicecandidate:F(function(a){var b;try{var c=(b=a.localDescription.sdp)&&b.match(/c=IN\s[\w\d]+\s([\w\d:.]+)/)}catch(d){a.onicecandidate=this.noop;"closed"!==a.iceConnectionState&&a.close();return}c&&0g&&500=c.browserInfo.rqnl&&(d=new R({protocol:c.protocol,host:c.host,resource:c.resource,counterId:c.counterId,counterType:c.counterType,postParams:c.postParams||[],retry:!0}),d.send(c.params,c.browserInfo))})};k.fletcher=function(a){for(var b= a.length,c=0,d=255,f=255,l,g,m;b;){l=21>8,g&=255,g^=m),d+=g,f+=d;while(--l);d=(d&255)+(d>>8);f=(f&255)+(f>>8)}a=(d&255)+(d>>8)<<8|(f&255)+(f>>8);return 65535==a?0:a};k.arrayEvery=function(a,b,c){var d;for(d=0;dparseInt(a,16)})};k.trim= function(a,b){a=String(a).replace(/^\s+|\s+$/g,"");b&&a.length>b&&(a=a.substr(0,b));return a};k.isNumber=function(a){return isFinite(a)&&!isNaN(a)&&"[object Number]"===k.toString(a)};k.isString=function(a){return"[object String]"===k.toString(a)};k._hasIndexOf=[].indexOf&&0===[x].indexOf(x);k.arrayIndexOf=k._hasIndexOf?function(a,b){return a.indexOf(b)}:function(a,b){var c;for(c=0;cd?(b+=String.fromCharCode(d),c++):191d?(f=a.charCodeAt(c+1),b+=String.fromCharCode((d&31)<<6|f&63),c+=2):(f=a.charCodeAt(c+1),l=a.charCodeAt(c+2),b+=String.fromCharCode((d&15)<<12|(f&63)<<6|l&63),c+=3);return b};k.reduce=function(a,b,c){var d=0;b==x&&(b=c[0],d++);for(;dZb?l=!0:7E5g&&(g*=-1),g%=65535;g=g||k.fletcher(n.name);D.set("winNameNum",g)}q("wn", g);try{n.history&&q("hl",String(n.history.length))}catch(e){}}g="";this.sendTitle&&(g=this._getTitle(a));q("t",g,!0);return p},_getTitle:function(a){a="undefined"==typeof a?(a=w.getDocumentTitle())?k.trim(a,zb):"":k.trim(a,zb);return a}});k.array2Props=function(a){var b=a.length,c={},d=c,f;for(f=0;f]*>|[\u0000-\u0020])/g,""))};w.getFormNumber=function(a){var b=t.getElementsByTagName("form"),c;var d=0;for(c=b.length;da.selectedIndex:!0};w.calcTextChecksum=function(a){var b="";a=a.childNodes;var c;var d=0;for(c=a.length;db.name?1: 2}).map(function(a){return[a.name,a.description,d.u(a).map(function(a){return[a.description,a.suffixes,a.type].join()}).join()].join()}).join()},a}();b.A=a},function(a,b){b.a=!0;b.u=function(a){return Array.prototype.slice.call(a)}},function(a,b){b.a=!0;a=function(){function a(){this.m=n.ApplePaySession}return a.prototype.g=function(){var a=!1;try{a=n.self!==n.top}catch(l){}if(!this.m||"https:"!==L.protocol||a)return"";a="";for(var b=1;10>=b;b++)a+=this.m.supportsVersion(b)?b:"0";return a+this.m.canMakePayments()}, a}();b.v=a},function(a,b){b.a=!0;a=function(){function a(){this.b=n.navigator}return a.prototype.g=function(){return this.b.i?this.b.i:this.b.N?this.b.N:this.b.i?this.b.i:"unknown"},a}();b.w=a},function(a,b){function c(a,b){a=[a[0]>>>16,65535&a[0],a[1]>>>16,65535&a[1]];b=[b[0]>>>16,65535&b[0],b[1]>>>16,65535&b[1]];var c=[0,0,0,0];return c[3]+=a[3]*b[3],c[2]+=c[3]>>>16,c[3]&=65535,c[2]+=a[2]*b[3],c[1]+=c[2]>>>16,c[2]&=65535,c[2]+=a[3]*b[2],c[1]+=c[2]>>>16,c[2]&=65535,c[1]+=a[1]*b[3],c[0]+=c[1]>>>16, c[1]&=65535,c[1]+=a[2]*b[2],c[0]+=c[1]>>>16,c[1]&=65535,c[1]+=a[3]*b[1],c[0]+=c[1]>>>16,c[1]&=65535,c[0]+=a[0]*b[3]+a[1]*b[2]+a[2]*b[1]+a[3]*b[0],c[0]&=65535,[c[0]<<16|c[1],c[2]<<16|c[3]]}function d(a,b){a=[a[0]>>>16,65535&a[0],a[1]>>>16,65535&a[1]];b=[b[0]>>>16,65535&b[0],b[1]>>>16,65535&b[1]];var c=[0,0,0,0];return c[3]+=a[3]+b[3],c[2]+=c[3]>>>16,c[3]&=65535,c[2]+=a[2]+b[2],c[1]+=c[2]>>>16,c[2]&=65535,c[1]+=a[1]+b[1],c[0]+=c[1]>>>16,c[1]&=65535,c[0]+=a[0]+b[0],c[0]&=65535,[c[0]<<16|c[1],c[2]<<16| c[3]]}function f(a,b){return 32===(b%=64)?[a[1],a[0]]:32>b?[a[0]<>>32-b,a[1]<>>32-b]:(b-=32,[a[1]<>>32-b,a[0]<>>32-b])}function l(a,b){return 0===(b%=64)?a:32>b?[a[0]<>>32-b,a[1]<>>1]),a=g(a=c(a,[4283543511,3981806797]),[0,a[0]>>>1]),g(a=c(a,[3301882366,444984403]),[0,a[0]>>>1])}b.a=!0;b.hash=function(a,b){b=b||0;var m=(a=a||"").length%16,r=a.length-m,p=[0,b];b= [0,b];for(var h,e,B=[2277735313,289559509],H=[1291169091,658871167],A=0;A>>0).toString(16)).slice(-8)+("00000000"+ (p[1]>>>0).toString(16)).slice(-8)+("00000000"+(b[0]>>>0).toString(16)).slice(-8)+("00000000"+(b[1]>>>0).toString(16)).slice(-8)}}]);jb=jb["default"]}}catch(a){Na={error:a,scope:"fip"}}k.toArray=function(a){var b,c=[];if(a&&!isNaN(a.length)&&0<=a.length)for(b=0;bb&&(a=a.substr(0,b));return(n.encodeURIComponent||n.escape)(a).replace(/\+/g,"%2B")};k.bind=function(a,b){var c=[].slice.call(arguments,2);return function(){return a.apply(b||this,c.concat([].slice.call(arguments,0)))}};k.clearTimeout=function(a){return k.getNativeFunction("clearTimeout")(a)};k.safeDecodeURIComponent=function(a){try{return decodeURIComponent(a)}catch(b){return""}};k.isDev=function(){return!1};k.noop=function(){};!ib(/webkit/)&&ib(/gecko/);var mb= {asyncChunk:400,maxDuration:20,restTime:100,asyncBuffer:[],timeout:null,rest:0,addAsyncItem:function(a,b,c,d,f){var l=this;this.asyncBuffer.push({fn:a,ctx:b,args:d||[],loggerName:f||""});c?(clearTimeout(this.timeout),l.flushAsync(!0)):y.getMs()-this.rest>=this.restTime&&!this.timeout?(this.rest=y.getMs(),l.flushAsync()):this.timeout||(this.timeout=k.setTimeout(function(){l.rest=y.getMs();l.flushAsync();l.timeout=!1},this.restTime))},chain:function(a,b,c,d){var f=this;a.push=function(a){throw'Try to push in Executor when it started "'+ a+'"';};(function u(b,c,k){f.addAsyncItem(function(b,c,d){c=a[b++](c);b<=a.length-1&&u(b,c,d)},null,k,[b,c],d+"."+b)})(0,b,c)},callByTimeout:function(a,b){for(var c=y.getMs(),d=0,f,l=(b||0)+1,g=0,m=this;this.asyncBuffer.length;)if(f=this.asyncBuffer.shift(),g+=1,!f.isExecuted&&(F(function(){f.fn.apply(f.ctx,f.args)},"AsyncExecutor."+f.loggerName)(),d=y.getMs()-c,f.isExecuted=!0,!a&&(g>=this.asyncChunk||d>=this.maxDuration))){k.setTimeout(function(){m.callByTimeout(a,l)},this.restTime);break}},flushAsync:function(a){this.asyncBuffer.length&& this.callByTimeout(a)}},ac=Va.inherit({id:"XHRPlain",index:8,_splitParams:function(a){var b={},c={};k.forEachKey(a,function(a,f){k.inArray(this.postParams,a)?this.postParams.isSingle?c=f:c[a]=f:b[a]=f},this);return{get:b,post:c}},_preparePostParams:function(a){return a.post},_setHeaders:function(a){a.setRequestHeader("Content-Type","text/plain")}}),nb=R.inherit({resource:"webvisor",version:2,retry:!1,postParams:["wv-data"],transports:[ac],_initComponent:function(){nb.superclass._initComponent.apply(this, arguments);this.postParams.isSingle=!0},sendPacket:function(a,b,c,d,f,l,g,m,r){var u=w.getViewportSize();if(!a||!a.length)return!1;a={rn:k.random(),"page-url":b,wmode:0,"wv-type":this.version,"wv-hit":c,"wv-part":d+1,"wv-data":a};f={et:g,w:u[0]+"x"+u[1],v:this._getVersion(),z:f,i:l};this.browserInfoMix&&(f=k.mixin(f,this.browserInfoMix));return this.send(a,f,m,r)}}),Za=Ua.inherit({protocol:"",chunkSize:0,counterId:"",counterType:"",meta:null,maxBufferSize:7E5,flushTimeout:2E3,storageKey:"visorbuff2", active:!1,wvType:2,_v:"",_totalSendLimit:null,_totalSendedSize:0,_initComponent:function(){this._sender=new nb({version:this.wvType,protocol:this.protocol,globalConfig:this.globalConfig,counterId:this.counterId,browserInfoMix:this.browserInfoMix,counterType:this.counterType});Za.superclass._initComponent.apply(this,arguments)},append:function(a){!this._data.length&&a&&a.length&&(this.startBufferTime=y.getSeconds());Za.superclass.append.apply(this,arguments)},_getSize:function(a){var b=this;this.chunkSize+= encodeURIComponent(a).length;this.wrappers.length&&k.reduce(function(a,d){var c=d.getBufferData();b.chunkSize+=k.toJSON(c).length},0,this.wrappers);return this.chunkSize},addData:function(a,b,c,d,f){var l=0,g=1,m={type:a},r=.9*this.maxBufferSize;if(!this.totalSendLimit||this._totalSendedSizethis.maxBufferSize)for(this._data.length&&this._flush(),d=Math.ceil(f/r);lb;++b){if(this.pos>=this.len)throw d(this);a.lo=(a.lo| (127&this.buf[this.pos])<<7*b)>>>0;if(128>this.buf[this.pos++])return a}a.lo=(a.lo|(127&this.buf[this.pos++])<<7*b)>>>0;return a}for(;4>b;++b)if(a.lo=(a.lo|(127&this.buf[this.pos])<<7*b)>>>0,128>this.buf[this.pos++])return a;a.lo=(a.lo|(127&this.buf[this.pos])<<28)>>>0;a.hi=(a.hi|(127&this.buf[this.pos])>>4)>>>0;if(128>this.buf[this.pos++])return a;b=0;if(4b;++b){if(a.hi=(a.hi|(127&this.buf[this.pos])<<7*b+3)>>>0,128>this.buf[this.pos++])return a}else for(;5>b;++b){if(this.pos>= this.len)throw d(this);a.hi=(a.hi|(127&this.buf[this.pos])<<7*b+3)>>>0;if(128>this.buf[this.pos++])return a}throw Error("invalid varint encoding");}function g(a,b){return(a[b-4]|a[b-3]<<8|a[b-2]<<16|a[b-1]<<24)>>>0}function k(){if(this.pos+8>this.len)throw d(this,8);return new q(g(this.buf,this.pos+=4),g(this.buf,this.pos+=4))}a.exports=f;var r,u=c(0),q=u.LongBits,n=u.utf8,p,h="undefined"!=typeof Uint8Array?function(a){if(a instanceof Uint8Array||Array.isArray(a))return new f(a);throw Error("illegal buffer"); }:function(a){if(Array.isArray(a))return new f(a);throw Error("illegal buffer");};f.create=u.Buffer?function(a){return(f.create=function(a){return u.Buffer.isBuffer(a)?new r(a):h(a)})(a)}:h;f.prototype._slice=u.Array.prototype.subarray||u.Array.prototype.slice;f.prototype.uint32=(p=4294967295,function(){p=(127&this.buf[this.pos])>>>0;if(128>this.buf[this.pos++])return p;p=(p|(127&this.buf[this.pos])<<7)>>>0;if(128>this.buf[this.pos++])return p;p=(p|(127&this.buf[this.pos])<<14)>>>0;if(128>this.buf[this.pos++])return p; p=(p|(127&this.buf[this.pos])<<21)>>>0;if(128>this.buf[this.pos++])return p;p=(p|(15&this.buf[this.pos])<<28)>>>0;if(128>this.buf[this.pos++])return p;if((this.pos+=5)>this.len)throw this.pos=this.len,d(this,10);return p});f.prototype.int32=function(){return 0|this.uint32()};f.prototype.sint32=function(){var a=this.uint32();return a>>>1^-(1&a)|0};f.prototype.bool=function(){return 0!==this.uint32()};f.prototype.fixed32=function(){if(this.pos+4>this.len)throw d(this,4);return g(this.buf,this.pos+= 4)};f.prototype.sfixed32=function(){if(this.pos+4>this.len)throw d(this,4);return 0|g(this.buf,this.pos+=4)};f.prototype["float"]=function(){if(this.pos+4>this.len)throw d(this,4);var a=u["float"].readFloatLE(this.buf,this.pos);this.pos+=4;return a};f.prototype["double"]=function(){if(this.pos+8>this.len)throw d(this,4);var a=u["float"].readDoubleLE(this.buf,this.pos);this.pos+=8;return a};f.prototype.bytes=function(){var a=this.uint32(),b=this.pos,c=this.pos+a;if(c>this.len)throw d(this,a);this.pos+= a;return Array.isArray(this.buf)?this.buf.slice(b,c):b===c?new this.buf.constructor(0):this._slice.call(this.buf,b,c)};f.prototype.string=function(){var a=this.bytes();return n.read(a,0,a.length)};f.prototype.skip=function(a){if("number"==typeof a){if(this.pos+a>this.len)throw d(this,a);this.pos+=a}else{do if(this.pos>=this.len)throw d(this);while(128&this.buf[this.pos++])}return this};f.prototype.skipType=function(a){switch(a){case 0:this.skip();break;case 1:this.skip(8);break;case 2:this.skip(this.uint32()); break;case 3:for(;4!=(a=7&this.uint32());)this.skipType(a);break;case 5:this.skip(4);break;default:throw Error("invalid wire type "+a+" at offset "+this.pos);}return this};f._configure=function(a){r=a;var b=u.Long?"toLong":"toNumber";u.merge(f.prototype,{int64:function(){return l.call(this)[b](!1)},uint64:function(){return l.call(this)[b](!0)},sint64:function(){return l.call(this).zzDecode()[b](!1)},fixed64:function(){return k.call(this)[b](!0)},sfixed64:function(){return k.call(this)[b](!1)}})}}, function(a,b,c){function d(a,b,c){this.fn=a;this.len=b;this.next=void 0;this.val=c}function f(){}function l(a){this.head=a.head;this.tail=a.tail;this.len=a.len;this.next=a.states}function g(){this.len=0;this.tail=this.head=new d(f,0,0);this.states=null}function k(a,b,c){b[c]=255&a}function r(a,b){this.len=a;this.next=void 0;this.val=b}function u(a,b,c){for(;a.hi;)b[c++]=127&a.lo|128,a.lo=(a.lo>>>7|a.hi<<25)>>>0,a.hi>>>=7;for(;127>>=7;b[c++]=a.lo}function q(a,b,c){b[c]= 255&a;b[c+1]=a>>>8&255;b[c+2]=a>>>16&255;b[c+3]=a>>>24}a.exports=g;var n,p=c(0),h=p.LongBits,e=p.base64,B=p.utf8;g.create=p.Buffer?function(){return(g.create=function(){return new n})()}:function(){return new g};g.alloc=function(a){return new p.Array(a)};p.Array!==Array&&(g.alloc=p.pool(g.alloc,p.Array.prototype.subarray));g.prototype._push=function(a,b,c){this.tail=this.tail.next=new d(a,b,c);this.len+=b;return this};r.prototype=Object.create(d.prototype);r.prototype.fn=function(a,b,c){for(;127< a;)b[c++]=127&a|128,a>>>=7;b[c]=a};g.prototype.uint32=function(a){this.len+=(this.tail=this.tail.next=new r(128>(a>>>=0)?1:16384>a?2:2097152>a?3:268435456>a?4:5,a)).len;return this};g.prototype.int32=function(a){return 0>a?this._push(u,10,h.fromNumber(a)):this.uint32(a)};g.prototype.sint32=function(a){return this.uint32((a<<1^a>>31)>>>0)};g.prototype.uint64=function(a){a=h.from(a);return this._push(u,a.length(),a)};g.prototype.int64=g.prototype.uint64;g.prototype.sint64=function(a){a=h.from(a).zzEncode(); return this._push(u,a.length(),a)};g.prototype.bool=function(a){return this._push(k,1,a?1:0)};g.prototype.fixed32=function(a){return this._push(q,4,a>>>0)};g.prototype.sfixed32=g.prototype.fixed32;g.prototype.fixed64=function(a){a=h.from(a);return this._push(q,4,a.lo)._push(q,4,a.hi)};g.prototype.sfixed64=g.prototype.fixed64;g.prototype["float"]=function(a){return this._push(p["float"].writeFloatLE,4,a)};g.prototype["double"]=function(a){return this._push(p["float"].writeDoubleLE,8,a)};var H=p.Array.prototype.set? function(a,b,c){b.set(a,c)}:function(a,b,c){for(var e=0;e>>0;if(!b)return this._push(k,1,0);if(p.isString(a)){var c=g.alloc(b=e.length(a));e.decode(a,c,0);a=c}return this.uint32(b)._push(H,b,a)};g.prototype.string=function(a){var b=B.length(a);return b?this.uint32(b)._push(B.write,b,a):this._push(k,1,0)};g.prototype.fork=function(){this.states=new l(this);this.head=this.tail=new d(f,0,0);this.len=0;return this};g.prototype.reset= function(){this.states?(this.head=this.states.head,this.tail=this.states.tail,this.len=this.states.len,this.states=this.states.next):(this.head=this.tail=new d(f,0,0),this.len=0);return this};g.prototype.ldelim=function(){var a=this.head,b=this.tail,c=this.len;this.reset().uint32(c);c&&(this.tail.next=a.next,this.tail=b,this.len+=c);return this};g.prototype.finish=function(){for(var a=this.head.next,b=this.constructor.alloc(this.len),c=0;a;)a.fn(a.val,b,c),c+=a.len,a=a.next;return b};g._configure= function(a){n=a}},function(a,b,c){a.exports={}},function(a,b,c){function d(a,b,c){if("function"!=typeof a)throw TypeError("rpcImpl must be a function");f.EventEmitter.call(this);this.rpcImpl=a;this.requestDelimited=!!b;this.responseDelimited=!!c}a.exports=d;var f=c(0);(d.prototype=Object.create(f.EventEmitter.prototype)).constructor=d;d.prototype.rpcCall=function C(a,b,c,d,k){if(!d)throw TypeError("request must be specified");var g=this;if(!k)return f.asPromise(C,g,a,b,c,d);if(g.rpcImpl)try{return g.rpcImpl(a, b[g.requestDelimited?"encodeDelimited":"encode"](d).finish(),function(b,e){if(b)return g.emit("error",b,a),k(b);if(null!==e){if(!(e instanceof c))try{e=c[g.responseDelimited?"decodeDelimited":"decode"](e)}catch(B){return g.emit("error",B,a),k(B)}g.emit("data",e,a);return k(null,e)}g.end(!0)})}catch(h){g.emit("error",h,a),G(function(){k(h)},0)}else G(function(){k(Error("already ended"))},0)};d.prototype.end=function(a){this.rpcImpl&&(a||this.rpcImpl(null,null,null),this.rpcImpl=null,this.emit("end").off()); return this}},function(a,b,c){b.Service=c(4)},function(a,b,c){function d(a){f.call(this,a)}a.exports=d;var f=c(1);(d.prototype=Object.create(f.prototype)).constructor=d;a=c(0);a.Buffer&&(d.prototype._slice=a.Buffer.prototype.slice);d.prototype.string=function(){var a=this.uint32();return this.buf.utf8Slice(this.pos,this.pos=Math.min(this.pos+a,this.len))}},function(a,b,c){function d(){l.call(this)}function f(a,b,c){40>a.length?g.utf8.write(a,b,c):b.utf8Write(a,c)}a.exports=d;var l=c(2);(d.prototype= Object.create(l.prototype)).constructor=d;var g=c(0),k=g.Buffer;d.alloc=function(a){return(d.alloc=g._Buffer_allocUnsafe)(a)};var r=k&&k.prototype instanceof Uint8Array&&"set"===k.prototype.set.name?function(a,b,c){b.set(a,c)}:function(a,b,c){if(a.copy)a.copy(b,c,0,a.length);else for(var d=0;d>>0;this.uint32(b);b&&this._push(r,b,a);return this};d.prototype.string=function(a){var b= k.byteLength(a);this.uint32(b);b&&this._push(f,b,a);return this}},function(a,b,c){function d(a,b){this.lo=a>>>0;this.hi=b>>>0}a.exports=d;var f=c(0),l=d.zero=new d(0,0);l.toNumber=function(){return 0};l.zzEncode=l.zzDecode=function(){return this};l.length=function(){return 1};var g=d.zeroHash="\x00\x00\x00\x00\x00\x00\x00\x00";d.fromNumber=function(a){if(0===a)return l;var b=0>a;b&&(a=-a);var c=a>>>0;a=(a-c)/4294967296>>>0;b&&(a=~a>>>0,c=~c>>>0,4294967295<++c&&(c=0,4294967295<++a&&(a=0)));return new d(c, a)};d.from=function(a){if("number"==typeof a)return d.fromNumber(a);if(f.isString(a)){if(!f.Long)return d.fromNumber(parseInt(a,10));a=f.Long.fromString(a)}return a.low||a.high?new d(a.low>>>0,a.high>>>0):l};d.prototype.toNumber=function(a){if(!a&&this.hi>>>31){a=1+~this.lo>>>0;var b=~this.hi>>>0;a||(b=b+1>>>0);return-(a+4294967296*b)}return this.lo+4294967296*this.hi};d.prototype.toLong=function(a){return f.Long?new f.Long(0|this.lo,0|this.hi,!!a):{low:0|this.lo,high:0|this.hi,unsigned:!!a}};var k= String.prototype.charCodeAt;d.fromHash=function(a){return a===g?l:new d((k.call(a,0)|k.call(a,1)<<8|k.call(a,2)<<16|k.call(a,3)<<24)>>>0,(k.call(a,4)|k.call(a,5)<<8|k.call(a,6)<<16|k.call(a,7)<<24)>>>0)};d.prototype.toHash=function(){return String.fromCharCode(255&this.lo,this.lo>>>8&255,this.lo>>>16&255,this.lo>>>24,255&this.hi,this.hi>>>8&255,this.hi>>>16&255,this.hi>>>24)};d.prototype.zzEncode=function(){var a=this.hi>>31;this.hi=((this.hi<<1|this.lo>>>31)^a)>>>0;this.lo=(this.lo<<1^a)>>>0;return this}; d.prototype.zzDecode=function(){var a=-(1&this.lo);this.lo=((this.lo>>>1|this.hi<<31)^a)>>>0;this.hi=(this.hi>>>1^a)>>>0;return this};d.prototype.length=function(){var a=this.lo,b=(this.lo>>>28|this.hi<<4)>>>0,c=this.hi>>>24;return 0===c?0===b?16384>a?128>a?1:2:2097152>a?3:4:16384>b?128>b?5:6:2097152>b?7:8:128>c?9:10}},function(a,b,c){a.exports=function(a,b,c){var d=c||8192,f=d>>>1,l=null,k=d;return function(c){if(1>c||c>f)return a(c);k+c>d&&(l=a(d),k=0);c=b.call(l,k,k+=c);7&k&&(k=1+(7|k));return c}}}, function(a,b,c){b.length=function(a){for(var b=0,c,d=0;dc?b+=1:2048>c?b+=2:55296==(64512&c)&&56320==(64512&a.charCodeAt(d+1))?(++d,b+=4):b+=3;return b};b.read=function(a,b,c){if(1>c-b)return"";for(var d,f=null,l=[],k=0;bd?l[k++]=d:191d?l[k++]=(31&d)<<6|63&a[b++]:239d?(d=((7&d)<<18|(63&a[b++])<<12|(63&a[b++])<<6|63&a[b++])-65536,l[k++]=55296+(d>>10),l[k++]=56320+(1023&d)):l[k++]=(15&d)<<12|(63&a[b++])<<6|63&a[b++],8191d?b[c++]=d:(2048>d?b[c++]=d>>6|192:(55296==(64512&d)&&56320==(64512&(f=a.charCodeAt(l+1)))?(d=65536+((1023&d)<<10)+(1023&f),++l,b[c++]=d>>18|240,b[c++]=d>>12&63|128):b[c++]=d>>12|224,b[c++]=d>>6&63|128),b[c++]=63&d|128);return c-k}},function(a, b,c){a.exports=function(a){return null}},function(a,b,c){function d(a){"undefined"!=typeof Float32Array?function(){function b(a,b,c){h[0]=a;b[c]=e[0];b[c+1]=e[1];b[c+2]=e[2];b[c+3]=e[3]}function c(a,b,c){h[0]=a;b[c]=e[3];b[c+1]=e[2];b[c+2]=e[1];b[c+3]=e[0]}function d(a,b){e[0]=a[b];e[1]=a[b+1];e[2]=a[b+2];e[3]=a[b+3];return h[0]}function f(a,b){e[3]=a[b];e[2]=a[b+1];e[1]=a[b+2];e[0]=a[b+3];return h[0]}var h=new Float32Array([-0]),e=new Uint8Array(h.buffer),g=128===e[3];a.writeFloatLE=g?b:c;a.writeFloatBE= g?c:b;a.readFloatLE=g?d:f;a.readFloatBE=g?f:d}():function(){function b(a,b,c,e){var d=0>b?1:0;d&&(b=-b);if(0===b)a(0<1/b?0:2147483648,c,e);else if(isNaN(b))a(2143289344,c,e);else if(3.4028234663852886e+38>>0,c,e);else if(1.1754943508222875e-38>b)a((d<<31|Math.round(b/1.401298464324817e-45))>>>0,c,e);else{var h=Math.floor(Math.log(b)/Math.LN2);a((d<<31|h+127<<23|8388607&Math.round(b*Math.pow(2,-h)*8388608))>>>0,c,e)}}function c(a,b,c){c=a(b,c);a=2*(c>>31)+1;b=c>>>23&255;c&= 8388607;return 255===b?c?NaN:1/0*a:0===b?1.401298464324817e-45*a*c:a*Math.pow(2,b-150)*(c+8388608)}a.writeFloatLE=b.bind(null,f);a.writeFloatBE=b.bind(null,k);a.readFloatLE=c.bind(null,g);a.readFloatBE=c.bind(null,m)}();"undefined"!=typeof Float64Array?function(){function b(a,b,c){h[0]=a;b[c]=e[0];b[c+1]=e[1];b[c+2]=e[2];b[c+3]=e[3];b[c+4]=e[4];b[c+5]=e[5];b[c+6]=e[6];b[c+7]=e[7]}function c(a,b,c){h[0]=a;b[c]=e[7];b[c+1]=e[6];b[c+2]=e[5];b[c+3]=e[4];b[c+4]=e[3];b[c+5]=e[2];b[c+6]=e[1];b[c+7]=e[0]} function d(a,b){e[0]=a[b];e[1]=a[b+1];e[2]=a[b+2];e[3]=a[b+3];e[4]=a[b+4];e[5]=a[b+5];e[6]=a[b+6];e[7]=a[b+7];return h[0]}function f(a,b){e[7]=a[b];e[6]=a[b+1];e[5]=a[b+2];e[4]=a[b+3];e[3]=a[b+4];e[2]=a[b+5];e[1]=a[b+6];e[0]=a[b+7];return h[0]}var h=new Float64Array([-0]),e=new Uint8Array(h.buffer),g=128===e[7];a.writeDoubleLE=g?b:c;a.writeDoubleBE=g?c:b;a.readDoubleLE=g?d:f;a.readDoubleBE=g?f:d}():function(){function b(a,b,c,e,d,f){var h=0>e?1:0;h&&(e=-e);if(0===e)a(0,d,f+b),a(0<1/e?0:2147483648, d,f+c);else if(isNaN(e))a(0,d,f+b),a(2146959360,d,f+c);else if(1.7976931348623157e+308>>0,d,f+c);else if(2.2250738585072014e-308>e)e/=5e-324,a(e>>>0,d,f+b),a((h<<31|e/4294967296)>>>0,d,f+c);else{var g=Math.floor(Math.log(e)/Math.LN2);1024===g&&(g=1023);e*=Math.pow(2,-g);a(4503599627370496*e>>>0,d,f+b);a((h<<31|g+1023<<20|1048576*e&1048575)>>>0,d,f+c)}}function c(a,b,c,e,d){b=a(e,d+b);e=a(e,d+c);a=2*(e>>31)+1;c=e>>>20&2047;b=4294967296*(1048575&e)+b;return 2047=== c?b?NaN:1/0*a:0===c?5e-324*a*b:a*Math.pow(2,c-1075)*(b+4503599627370496)}a.writeDoubleLE=b.bind(null,f,0,4);a.writeDoubleBE=b.bind(null,k,4,0);a.readDoubleLE=c.bind(null,g,0,4);a.readDoubleBE=c.bind(null,m,4,0)}();return a}function f(a,b,c){b[c]=255&a;b[c+1]=a>>>8&255;b[c+2]=a>>>16&255;b[c+3]=a>>>24}function k(a,b,c){b[c]=a>>>24;b[c+1]=a>>>16&255;b[c+2]=a>>>8&255;b[c+3]=255&a}function g(a,b){return(a[b]|a[b+1]<<8|a[b+2]<<16|a[b+3]<<24)>>>0}function m(a,b){return(a[b]<<24|a[b+1]<<16|a[b+2]<<8|a[b+ 3])>>>0}a.exports=d(d)},function(a,b,c){function d(){this._listeners={}}a.exports=d;d.prototype.on=function(a,b,c){(this._listeners[a]||(this._listeners[a]=[])).push({fn:b,ctx:c||this});return this};d.prototype.off=function(a,b){if(void 0===a)this._listeners={};else if(void 0===b)this._listeners[a]=[];else for(var c=this._listeners[a],d=0;da;)f[d[a]=26>a?a+65:52>a?a+71:62>a?a-4:a-59|43]=a++;b.encode=function(a,b,c){for(var f,g=null,k=[],l=0,p=0;b>2];f=(3&h)<<4;p=1;break;case 1:k[l++]=d[f|h>>4];f=(15&h)<<2;p=2;break;case 2:k[l++]=d[f|h>>6],k[l++]= d[63&h],p=0}8191>4;d=p;k=2;break;case 2:b[c++]=(15& d)<<4|(60&p)>>2;d=p;k=3;break;case 3:b[c++]=(3&d)<<6|p,k=0}}if(1===k)throw Error("invalid encoding");return c-g};b.test=function(a){return/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/.test(a)}},function(a,b,c){a.exports=function(a,b){for(var c=Array(arguments.length-1),d=0,f=2,k=!0;f>>3){case 1:e.buffer&&e.buffer.length||(e.buffer=[]);e.buffer.push(g.ru.yandex.metrika.wv2.proto.Buffer.decode(a,a.uint32()));break;default:a.skipType(7&h)}}return e};return a}();a.Buffer=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.stamp=a.int32();break;case 2:e.data=g.ru.yandex.metrika.wv2.proto.Wrapper.decode(a,a.uint32());break;case 3:e.page=a.int32();break;case 4:e.chunk=a.bytes();break;case 5:e.end=a.bool();break;default:a.skipType(7& h)}}return e};return a}();a.Wrapper=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.page=g.ru.yandex.metrika.wv2.proto.Page.decode(a,a.uint32());break;case 2:e.mutation=g.ru.yandex.metrika.wv2.proto.Mutation.decode(a,a.uint32());break;case 3:e.event=g.ru.yandex.metrika.wv2.proto.Event.decode(a,a.uint32());break;case 4:e.articleInfo=g.ru.yandex.metrika.wv2.proto.ArticleInfo.decode(a,a.uint32());break;case 5:e.publishersHeader=g.ru.yandex.metrika.wv2.proto.PublishersHeader.decode(a,a.uint32());break;case 6:e.activity=a.uint32();break;default:a.skipType(7& h)}}return e};return a}();a.Page=function(){function a(a){this.content=[];if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.meta=g.ru.yandex.metrika.wv2.proto.Page.Meta.decode(a,a.uint32());break;case 2:e.content&&e.content.length||(e.content=[]);e.content.push(g.ru.yandex.metrika.wv2.proto.Page.Content.decode(a,a.uint32()));break;case 3:e.frameId=a.sint32();break;case 4:e.tabId=a.string();break;case 5:e.recordStamp=a.int64();break;default:a.skipType(7&h)}}return e};a.Box=function(){function a(a){if(a)for(var b= Object.keys(a),c=0;c>>3){case 1:e.width=a.int32();break;case 2:e.height=a.int32();break;default:a.skipType(7&h)}}return e};return a}();a.Location=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.host=a.string();break;case 2:e.protocol=a.string();break;case 3:e.path=a.string();break;default:a.skipType(7&h)}}return e};return a}();a.Scroll=function(){function a(a){this.scroll= [];if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.target=a.int32();break;case 2:e.scroll&&e.scroll.length||(e.scroll=[]);if(2==(7&h))for(h=a.uint32()+a.pos;a.pos>>3){case 1:e.doctype=a.string();break;case 2:e.title=a.string();break;case 3:e.address=a.string();break;case 4:e.ua=a.string();break;case 5:e.referrer=a.string();break;case 6:e.base=a.string();break;case 7:e.hasBase=a.bool();break;case 8:e.screen=g.ru.yandex.metrika.wv2.proto.Page.Box.decode(a,a.uint32());break;case 9:e.viewport= g.ru.yandex.metrika.wv2.proto.Page.Box.decode(a,a.uint32());break;case 10:e.location=g.ru.yandex.metrika.wv2.proto.Page.Location.decode(a,a.uint32());break;case 11:e.initialScroll&&e.initialScroll.length||(e.initialScroll=[]);e.initialScroll.push(g.ru.yandex.metrika.wv2.proto.Page.Scroll.decode(a,a.uint32()));break;default:a.skipType(7&h)}}return e};return a}();a.Content=function(){function a(a){this.attributes={};if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:h.id=a.int32();break;case 2:h.name=a.string();break;case 3:a.skip().pos++;h.attributes===k.emptyObject&&(h.attributes={});c=a.string();a.pos++;h.attributes[c]=a.string();break;case 4:h.parent=a.int32();break;case 5:h.content=a.string();break;case 6:h.next=a.int32();break;case 7:h.prev=a.int32();break;case 8:h.hidden= a.bool();break;default:a.skipType(7&c)}return h};return a}();return a}();a.Mutation=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.target=a.int32();break;case 2:e.stamp=a.int32();break;case 3:e.meta=g.ru.yandex.metrika.wv2.proto.Mutation.Meta.decode(a, a.uint32());break;case 4:e.frameId=a.sint32();break;default:a.skipType(7&h)}}return e};a.Delete=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.id=a.int32();break;case 2:e.pr=a.int32();break;case 3:e.nx=a.int32();break;case 4:e.pa= a.int32();break;case 5:e.i=a.int32();break;default:a.skipType(7&h)}}return e};return a}();a.Add=function(){function a(a){this.at={};if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:h.id=a.int32();break;case 2:h.nm=a.string();break;case 3:h.pa=a.int32();break;case 4:h.ns= a.string();break;case 5:h.pr=a.int32();break;case 6:a.skip().pos++;h.at===k.emptyObject&&(h.at={});c=a.string();a.pos++;h.at[c]=a.string();break;case 7:h.ct=a.string();break;case 8:h.nx=a.int32();break;case 9:h.i=a.int32();break;default:a.skipType(7&c)}return h};return a}();a.BeforeAfter=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.o=a.string();break;case 2:e.n=a.string();break;case 3:e.r=a.bool(); break;default:a.skipType(7&h)}}return e};return a}();a.AttributeChange=function(){function a(a){this.at={};if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:h.id=a.int32();break;case 2:a.skip().pos++;h.at===k.emptyObject&&(h.at={});c=a.string();a.pos++;h.at[c]=g.ru.yandex.metrika.wv2.proto.Mutation.BeforeAfter.decode(a, a.uint32());break;case 3:h.i=a.int32();break;default:a.skipType(7&c)}return h};return a}();a.TextChange=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.id=a.int32();break;case 2:e.ct=g.ru.yandex.metrika.wv2.proto.Mutation.BeforeAfter.decode(a,a.uint32());break;case 3:e.i=a.int32();break;default:a.skipType(7&h)}}return e};return a}();a.Changes=function(){function a(a){this.a= [];this.b=[];this.c=[];this.d=[];if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.a&&e.a.length||(e.a=[]);e.a.push(g.ru.yandex.metrika.wv2.proto.Mutation.Delete.decode(a,a.uint32()));break;case 2:e.b&&e.b.length||(e.b=[]);e.b.push(g.ru.yandex.metrika.wv2.proto.Mutation.Add.decode(a,a.uint32()));break;case 3:e.c&&e.c.length||(e.c=[]);e.c.push(g.ru.yandex.metrika.wv2.proto.Mutation.AttributeChange.decode(a,a.uint32()));break;case 4:e.d&&e.d.length||(e.d=[]);e.d.push(g.ru.yandex.metrika.wv2.proto.Mutation.TextChange.decode(a,a.uint32()));break;default:a.skipType(7& h)}}return e};return a}();a.Meta=function(){function a(a){this.changes=[];if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.index=a.int32();break;case 2:e.changes&&e.changes.length||(e.changes=[]);e.changes.push(g.ru.yandex.metrika.wv2.proto.Mutation.Changes.decode(a,a.uint32()));break;default:a.skipType(7&h)}}return e};return a}();return a}();a.Event=function(){function a(a){if(a)for(var b=Object.keys(a), c=0;c>>3){case 1:e.type=a.int32();break;case 2:e.target=a.sint32();break;case 3:e.frameId=a.sint32();break;case 4:e.mouseEvent=g.ru.yandex.metrika.wv2.proto.MouseEvent.decode(a,a.uint32());break;case 5:e.scrollEvent=g.ru.yandex.metrika.wv2.proto.ScrollEvent.decode(a,a.uint32());break;case 6:e.windowEvent=g.ru.yandex.metrika.wv2.proto.WindowEvent.decode(a,a.uint32());break;case 7:e.selectionEvent=g.ru.yandex.metrika.wv2.proto.SelectionEvent.decode(a,a.uint32());break;case 8:e.changeEvent= g.ru.yandex.metrika.wv2.proto.ChangeEvent.decode(a,a.uint32());break;case 9:e.touchEvent=g.ru.yandex.metrika.wv2.proto.TouchEvent.decode(a,a.uint32());break;case 10:e.methodEvent=g.ru.yandex.metrika.wv2.proto.MethodEvent.decode(a,a.uint32());break;case 11:e.propertyEvent=g.ru.yandex.metrika.wv2.proto.PropertyEvent.decode(a,a.uint32());break;case 12:e.zoomEvent=g.ru.yandex.metrika.wv2.proto.ZoomEvent.decode(a,a.uint32());break;case 13:e.resizeEvent=g.ru.yandex.metrika.wv2.proto.ResizeEvent.decode(a, a.uint32());break;case 14:e.keystrokesEvent=g.ru.yandex.metrika.wv2.proto.KeystrokesEvent.decode(a,a.uint32());break;case 15:e.deviceRotationEvent=g.ru.yandex.metrika.wv2.proto.DeviceRotationEvent.decode(a,a.uint32());break;case 16:e.fatalErrorEvent=g.ru.yandex.metrika.wv2.proto.FatalErrorEvent.decode(a,a.uint32());break;case 17:e.hashchangeEvent=g.ru.yandex.metrika.wv2.proto.HashchangeEvent.decode(a,a.uint32());break;default:a.skipType(7&h)}}return e};return a}();a.MouseEvent=function(){function a(a){if(a)for(var b= Object.keys(a),c=0;c>> 3){case 1:e.x=a.int32();break;case 2:e.y=a.int32();break;default:a.skipType(7&h)}}return e};return a}();a.ScrollEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.x=a.int32();break;case 2:e.y=a.int32();break;case 3:e.page=a.bool();break;default:a.skipType(7&h)}}return e};return a}();a.WindowEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.start=a.int32();break;case 2:e.end=a.int32();break;case 3:e.startNode=a.int32();break;case 4:e.endNode=a.int32();break;default:a.skipType(7&h)}}return e};return a}();a.ChangeEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.value=a.string(); break;case 2:e.checked=a.bool();break;case 3:e.hidden=a.bool();break;default:a.skipType(7&h)}}return e};return a}();a.TouchEvent=function(){function a(a){this.touches=[];if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.touches&&e.touches.length||(e.touches=[]);e.touches.push(g.ru.yandex.metrika.wv2.proto.TouchEvent.SubMeta.decode(a,a.uint32()));break;default:a.skipType(7&h)}}return e};a.SubMeta=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.id=a.string();break;case 2:e.x=a["float"]();break;case 3:e.y=a["float"]();break;case 4:e.force=a["float"]();break;default:a.skipType(7&h)}}return e};return a}();return a}();a.ZoomEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.zoomFrom=g.ru.yandex.metrika.wv2.proto.ZoomEvent.ZoomPoint.decode(a,a.uint32());break;case 2:e.zoomTo=g.ru.yandex.metrika.wv2.proto.ZoomEvent.ZoomPoint.decode(a,a.uint32());break;default:a.skipType(7&h)}}return e};a.ZoomPoint=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.level=a["float"]();break;case 2:e.x=a.int32();break;case 3:e.y=a.int32(); break;default:a.skipType(7&h)}}return e};return a}();return a}();a.ResizeEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.width=a.int32();break;case 2:e.height=a.int32();break;case 3:e.pageWidth=a.int32();break;case 4:e.pageHeight=a.int32(); break;default:a.skipType(7&h)}}return e};return a}();a.MethodEvent=function(){function a(a){this.args=[];if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.method=a.string();break;case 2:e.args&&e.args.length||(e.args=[]);e.args.push(a.string());break;default:a.skipType(7&h)}}return e};return a}();a.PropertyEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.property=a.string();break;case 2:e.value=a.string(); break;default:a.skipType(7&h)}}return e};return a}();a.KeystrokesEvent=function(){function a(a){this.keystrokes=[];if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.keystrokes&&e.keystrokes.length||(e.keystrokes=[]);e.keystrokes.push(g.ru.yandex.metrika.wv2.proto.KeystrokesEvent.KeystrokeEvent.decode(a,a.uint32()));break;default:a.skipType(7&h)}}return e};a.KeystrokeEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.id=a.int32();break;case 2:e.key=a.string();break;case 3:e.isMeta=a.bool();break;case 4:e.modifier=a.string();break;default:a.skipType(7&h)}}return e};return a}();return a}();a.DeviceRotationEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.width=a.int32();break;case 2:e.height=a.int32();break;case 3:e.orientation=a.int32();break;default:a.skipType(7&h)}}return e};return a}();a.FatalErrorEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.code= a.string();break;case 2:e.exception=a.string();break;case 3:e.stack=a.string();break;default:a.skipType(7&h)}}return e};return a}();a.HashchangeEvent=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.hash=a.string();break;default:a.skipType(7&f)}}return e};return a}();a.EventType=function(){var a={},b=Object.create(a);b[a[0]="mousemove"]=0;b[a[1]="mouseup"]=1;b[a[2]="mousedown"]=2;b[a[3]="click"]=3;b[a[4]="scroll"]=4;b[a[5]="windowblur"]=5;b[a[6]="windowfocus"]=6;b[a[7]="focus"]=7;b[a[8]="blur"]=8;b[a[9]="eof"]=9;b[a[10]="selection"]=10;b[a[11]="change"]=11; b[a[12]="input"]=12;b[a[13]="touchmove"]=13;b[a[14]="touchstart"]=14;b[a[15]="touchend"]=15;b[a[16]="touchcancel"]=16;b[a[17]="touchforcechange"]=17;b[a[18]="canvasMethod"]=18;b[a[19]="canvasProperty"]=19;b[a[20]="zoom"]=20;b[a[21]="resize"]=21;b[a[22]="mediaMethod"]=22;b[a[23]="mediaProperty"]=23;b[a[24]="keystroke"]=24;b[a[25]="deviceRotation"]=25;b[a[26]="fatalError"]=26;b[a[27]="hashchange"]=27;return b}();a.PublishersHeader=function(){function a(a){this.articleMeta=[];if(a)for(var b=Object.keys(a), c=0;c>>3){case 1:e.articleMeta&&e.articleMeta.length||(e.articleMeta=[]);e.articleMeta.push(g.ru.yandex.metrika.wv2.proto.ArticleMeta.decode(a,a.uint32()));break;case 2:e.involvedTime=a.int32();break;default:a.skipType(7&f)}}return e};return a}();a.ArticleMeta=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.id=a.uint32();break;case 2:e.x=a.int32();break;case 3:e.y=a.int32();break;case 4:e.width=a.int32();break;case 5:e.height=a.int32();break;case 6:e.involvedTime=a.int32();break;case 7:e.maxScrolled=a["float"]();break;case 8:e.chars=a.int32();break;default:a.skipType(7&f)}}return e};return a}();a.ArticleInfo=function(){function a(a){this.authors=[];this.topics=[];this.rubric=[];if(a)for(var b=Object.keys(a), c=0;c>>3){case 1:e.id=a.uint32();break;case 2:e.pageUrlCanonical=a.string();break;case 3:e.pageTitle=a.string();break;case 4:e.authors&&e.authors.length||(e.authors=[]);e.authors.push(g.ru.yandex.metrika.wv2.proto.ArticleAuthor.decode(a,a.uint32()));break;case 5:e.topics&&e.topics.length||(e.topics=[]);e.topics.push(g.ru.yandex.metrika.wv2.proto.ArticleTopic.decode(a,a.uint32()));break;case 6:e.publicationDate= a.string();break;case 7:e.chars=a.int32();break;case 8:e.rubric&&e.rubric.length||(e.rubric=[]);e.rubric.push(g.ru.yandex.metrika.wv2.proto.ArticleRubric.decode(a,a.uint32()));break;case 9:e.updateDate=a.string();break;default:a.skipType(7&f)}}return e};return a}();a.ArticleAuthor=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.name=a.string();break;default:a.skipType(7&f)}}return e};return a}();a.ArticleTopic=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.name=a.string();break;default:a.skipType(7&f)}}return e};return a}();a.ArticleRubric=function(){function a(a){if(a)for(var b=Object.keys(a),c=0;c>>3){case 1:e.name= a.string();break;case 2:e.position=a.int32();break;default:a.skipType(7&f)}}return e};return a}();return a}();return a}();return a}();return a}();return a}();a.exports=g}]).ru.yandex.metrika.wv2.proto}catch(a){}try{var $a={ScrollEvent:{type:J.ScrollEvent,events:["scroll"]},SelectionEvent:{type:J.SelectionEvent,events:["selection"]},ChangeEvent:{type:J.ChangeEvent,events:["change","input"]},MethodEvent:{type:J.MethodEvent,repeated:"args",events:["canvasMethod","mediaMethod"]},PropertyEvent:{type:J.PropertyEvent, events:["canvasProperty","mediaProperty"]},KeystrokesEvent:{type:J.KeystrokesEvent,repeated:"keystrokes",events:["keystroke"]},ZoomEvent:{type:J.ZoomEvent,events:["zoom"]},ResizeEvent:{type:J.ResizeEvent,events:["resize"]},WindowEvent:{type:J.WindowEvent,events:["windowfocus","windowblur","focus","blur","eof"]},MouseEvent:{type:J.MouseEvent,events:["mousemove","mouseup","mousedown","click"]},DeviceRotationEvent:{type:J.DeviceRotationEvent,events:["deviceRotation"]},FatalErrorEvent:{type:J.FatalErrorEvent, events:["fatalError"]},TouchEvent:{type:J.TouchEvent,repeated:"touches",events:["touchmove","touchstart","touchend","touchcancel","touchforcechange"]}},bc=k.reduce(function(a,b){return a.concat(k.map(function(a){return{eventName:a,type:$a[b].type,repeated:$a[b].repeated,typeStr:b}},$a[b].events))},[],k.keys($a)),cc={nullToStr:function(a){var b=this;if(k.isArray(a))return k.map(function(a){return b.nullToStr(a)},a);if(k.isObject(a))k.forEachKey(a,function(c,d){a[c]=b.nullToStr(d);return!0});else if(null=== a||a===x)a="";return a},uncapitalize:function(a,b){var c=a.slice(1);return a.charAt(0).toLowerCase()+(b?c.toLowerCase():c)},capitalize:function(a,b){var c=a.slice(1);return a.charAt(0).toUpperCase()+(b?c.toLowerCase():c)},notNaN:function(a){return isNaN(a)&&"number"==typeof a?0:a},eventSerialize:function(a){var b=k.filter(function(b){return b.eventName==a.type},bc),c;for(c=0;cthis.maxBufferSize&&g&&this._flush(d);if(k>this.maxBufferSize){for(g=Math.ceil(k/this.maxChunkSize);nc&&(a=a.parentElement));return a}return null};var E={select:function(a,b){return a?a.querySelectorAll(b):null},looksLikeFullUrl:function(a){return"string"!==typeof a?!1:/^(https?:)\/\//.test(a)},selectOne:function(a,b){var c= this.select(a,b);return c&&c.length?c[0]:null},closest:function(a,b){return w.closest(a,b)},testAttr:function(a,b,c){return c.test(a.getAttribute(b))},selectPropOne:function(a,b){var c=this.selectProp(a,b);return c&&c.length?c[0]:null},selectProp:function(a,b){var c=a.getAttribute("itemtype"),d=null,f=this.select(a,'[itemprop\x3d"'+b+'"]');c&&(d=k.filter(function(b){return b.parentNode&&w.closest(b.parentNode,"[itemtype]")===a},f));return d||f||[]},getVal:function(a){if(!a||0==a.length)return"";a.length=== x&&(a=[a]);return a[0].getAttribute("content")||a[0].innerText||""},getDate:function(a){return a?a.attributes&&a.attributes.datetime?""+a.attributes.datetime.value:this.getVal(a):""}},ob=K.inherit({fields:{},schemaEntities:{"schema.org":"Article NewsArticle Movie BlogPosting Review Recipe Question".split(" "),opengraph:["article"]},_getContentNode:function(a){return a.element},_getFieldData:function(a,b){var c,d=this;F(function(){c=d.fields[b].call(d,a)},"P.s."+b)();return c},_postprocessData:function(a, b){var c=this._getContentNode(b);a.pageTitle||(a.pageTitle=this._getTitleFromContent(c));a.pageUrlCanonical||(a.pageUrlCanonical=E.looksLikeFullUrl(a.id)?a.id:this.getPageUrlCanonical());a.id||(a.id=a.pageTitle||a.pageUrlCanonical);return a},_getContentData:function(a){var b={},c=this;k.map(function(d){b[d]=c._getFieldData(a,d)},k.keys(this.fields));b.element=a.element;b.stamp=y.getFormStart();b=this._postprocessData(b,a);b.id=b.id?k.fnv32a(b.id):1;b.update=k.bind(this._getFieldData,this,a);return b}, _getTitleFromContent:function(a){var b,c;for(b=1;5>=b;b++)if(c=E.getVal(E.selectOne(a,"h"+b)))return c;return null},getPageUrlCanonical:function(){var a=E.selectOne(this.root,'[rel\x3d"canonical"]');if(a)return a.href},findContent:function(){var a,b=[],c,d=this._findContentDescriptionNodes();for(a=0;af||1a.length)return 1;var b=""+a[0];k.inArray(b,":")||(b+=":0");var c=b.split(":")[0];var d=a[1];var f=this.globalConfig.get("counters",{})[b];"init"==d?(d="yaCounter"+c,n[d]||(a=k.mixin(a[2]||{},{id:+c}),n[d]=new n.Ya[this.constructorName](a))):k.inArray(this.counters,b)&&f&&f[d]?(a=[].slice.call(a,2),f[d].apply(f,a)):k.inArray(this.counters,b)||(this.waitPool[b]||(this.waitPool[b]=[]),this.waitPool[b].push(a)); return 1},subscribe:function(a){a&&(this.counters.push(a),this.waitPool[a]&&(k.arrayEvery(this.waitPool[a],this.handle,this),delete this.waitPool[a]))},init:function(a,b){var c=this,d=n[this.FN];if(d){var f=d[this.STACK];this.constructorName=a;this.globalConfig=b;f||(d[this.STACK]=f=[]);var l=f.push;f.push=function(){var a=l.apply(f,arguments);k.arrayEvery(arguments,c.handle,c);return a};d&&k.isArray(f)&&k.arrayEvery(f,this.handle,this)}}};w.loadScript=function(a,b){b=b||n;var c=k.mixin({type:"text/javascript", charset:"utf-8",async:!0},a),d=b.document,f=k.getNativeFunction("createElement",d),l=f("script");if(l){l.type=c.type;l.charset=c.charset;l.src=c.src;c.async&&(l.async=!0);try{var g=d.getElementsByTagName("head")[0];if(!g){var m=d.getElementsByTagName("html")[0];g=f("head");m&&m.appendChild(g)}g.insertBefore(l,g.firstChild);return l}catch(r){}}};var fc=wa.inherit({id:"script",index:6,request:function(a,b,c,d){var f=!1,l=k.getNativeFunction("createElement",t)("script");this.timeout&&k.setTimeout(function(){f|| (f=!0,w.removeNode(l),c.call(d,!1))},this.timeout,"ts.request");if(!l)return f=!0,c.call(d,!1),!1;var g="_ymjsp"+k.random();n[g]=F(function(){if(!f){try{delete n[g]}catch(r){n[g]=x}c.apply(d,k.mergeArrays([!0],arguments));f=!0;w.removeNode(l)}},"transport.script");l.type="text/javascript";l.src=this._buildUrl(a,k.mixin({wmode:5,callback:g},b));l.async="async";var m=t.getElementsByTagName("head")[0];m||(m=t.createElement("head"),t.documentElement.appendChild(m));k.async(function(){m.insertBefore(l, m.firstChild)});l.onerror=function(){f=!0;c.call(d,!1);n[g]=x};return!0}}),Fb=Va.inherit({id:"XHRhit",index:10,_buildUrl:function(a,b){b.wmode=7;return Fb.superclass._buildUrl.apply(this,[a,b])},_parseResp:function(a){var b=aa.parse(a);if(!b)throw"";return k.map(function(a){return b[a]},k.keys(b))}}),pb=Pa.inherit({transports:[Fb,fc],trimParams:!0,_initComponent:function(){pb.superclass._initComponent.apply(this,arguments);this._ilStorage=new la({counterId:this.counterId})},postParams:[],checkYandexHost:function(a){if(a){a:{if(a= k.parseUrl(a).host.match(/(?:^|\.)(?:ya|yandex)\.(?:\w+|com?\.\w+)$/))if(a=a[0].split("yandex").reverse()[0].substring(1),-1!=k.arrayIndexOf(xb,a))break a;a=!1}a&&(this.host="mc.yandex."+a)}},sendHit:function(a){var b={},c=this._ilStorage.get("il");a.visitColor&&(b.vc=a.visitColor);c&&(this._ilStorage.remove("il"),b.ilt=na.encode(Oa.encode(k.trim(c,Gb))));this.checkYandexHost(a.referrer);this._hitExt({url:a.url,forceNoRedirect:a.forceNoRedirect,nohit:a.nohit,hasPrerender:a.hasPrerender,title:a.title, referrer:a.referrer,vParams:a.vParams,userParams:a.userParams,experiments:a.experiments,modes:a.modes,browserInfo:b,ts:a.ts,tz:a.tz,callback:a.callback,ctx:a.ctx},"hit")}}),Hb=K.inherit({cid:3,cnt:0,KEY_NAME:"wasSynced",_initComponent:function(){this._storage=new la;this._cookie=new Q},hit:function(a,b){var c=this,d=b===x?!0:!1,f=d?this._storage.get(this.KEY_NAME):!1,l=[],g=this.globalConfig.get("fakeHit");if(g)return g(function(b){a(b)});!f&&d&&(f=this._cookie.read(this.KEY_NAME))&&(f=aa.parse(f)); f&&f.params&&f.time+864E5>y.getMs()?(c.globalConfig.set("isEU",f.params.eu),a(f)):(this.globalConfig.set("fakeHit",function(a){l.push(a)}),this._getSender().sendHit({forceNoRedirect:this.forceNoRedirect,callback:function(b,d){var g=b||{};f={time:y.getMs(),params:g,bkParams:d};c.globalConfig.set("isEU",g.eu);c._storage.set(c.KEY_NAME,f);c._cookie.create(c.KEY_NAME,aa.stringify(f),1728);a(f);c.globalConfig.set("fakeHit",function(a){a(f)});k.arrayEvery(l,function(a){a(f);return 1})}}))},_getSender:function(){this._sender|| (this._sender=new pb({protocol:"https:",counterType:this.cnt,counterId:this.cid,sendTitle:!1,globalConfig:this.globalConfig,fake:!0}));return this._sender}}),Ib=K.inherit({baseUrl:"mc.yandex.",globalConfig:D,baseTld:"ru",partners:{"mc.yandexsport.ru":{regex:/^([^/]+\.)?yandexsport\.ru$/,tld:"ru"},"mc.beru.ru":{regex:/^([^/]+\.)?beru\.ru$/,tld:"ru"},"mc.kinopoisk.ru":{regex:/^([^/]+\.)?kinopoisk\.ru$/,tld:"ru"}},_initComponent:function(){var a=this;Ib.superclass._initComponent.apply(this,arguments); this.syncTlds=k.reduce(function(a,c){return c(a)},xb,[k.bind(k.filter,null,function(b){return b!==a.baseTld}),k.bind(k.reduce,null,function(a,c){a[c]=[c];return a},{})]);k.forEachKey(this.partners,function(a,c){c.regex.test(n.location.hostname)&&(this.syncTlds[c.tld]||(this.syncTlds[c.tld]=[]),this.syncTlds[c.tld].push(a),this._replaceBase[a]=!0)},this)},_replaceBase:{},langToDomain:{ka:"ge",ro:"md",tg:"tj",tk:"tm",et:"ee",hy:"com.am",he:"co.li",ky:"kg",uk:"ua",be:"by",tr:"com.tr",kk:"kz"},sync:function(a){var b= this,c=this._need(),d=-1!=I().hostname.search(/(?:^|\.)(?:ya|yandex(sport)?|beru|kinopoisk)\.(?:\w+|com?\.\w+)$/);this._is()?a():(d&&b._syncAdmetrica(),c?(this._setStatus(!0),d?this._getCn().hit(function(){b._sync(c,a)}):a()):a());d&&this._addMda()},_addMda:function(){var a=new Q({skipPrefix:!0}),b=new Q,c=a.read("mda");"0"!==c&&"1"!==c&&a.create("mda","0",1036800);b.read("mda")&&b.erase("mda")},_is:function(){try{return!!this.globalConfig.get("startSync")}catch(a){return!1}},_setStatus:function(a){try{this.globalConfig.set("startSync", a)}catch(b){}},_need:function(){var a=this._getDomainByLang(),b=this._getTld(),c=[],d;(d=this.syncTlds[b])&&c.push.apply(c,d);d=this.syncTlds[a];a!==b&&d&&c.push.apply(c,d);var f=this._getLs().get("synced")||{};c=k.arrayFilter(c,function(a){return(f[a]||1)+1440=Math.random()&&a;c=v.isIOS()&&a;return v.isAndroid()&&a||c},_setStatus:function(a){try{this.globalConfig.set("dSync",a)}catch(b){}}},W={getPos:function(a){var b=w.getRootElement(),c=w.getDocumentScroll();return[a.pageX||a.clientX+c[0]-(b.clientLeft||0)||0,a.pageY||a.clientY+c[1]-(b.clientTop||0)||0]},getTarget:function(a){var b=null;try{if(b=a.target||a.srcElement)!b.ownerDocument&&b.documentElement?b=b.documentElement:b.ownerDocument!==t&&(b= null)}catch(c){}return b},getMouseButton:function(a){return a.which||a.button==x?a.which:a.button&1?1:a.button&2?3:a.button&4?2:0},prevent:function(a){a=a||n.event;a.preventDefault?a.preventDefault():a.returnValue=!1}};W.dispatchCustomEvent=F(function(a,b){var c;b=b||t;if(c=k.getNativeFunction("createEvent",t)("Event"))c.initEvent(a,!1,!1),k.getNativeFunction("dispatchEvent",b)(c)},"evt.dispatch");var Xa={lastReferrer:null},Ja=K.inherit({counter:null,prefsEcommerce:null,status:{NEW:x,PENDING:1,OK:2, FAIL:3},overrideTimeout:null,dataLayerName:"dataLayer",_initComponent:function(){Ja.superclass._initComponent.apply(this,arguments);this.frameConnector&&this.frameConnector.addHandler("params",function(a,b){if(this.counter&&this.counter.params)this.onCookies(function(a){this.counter.params(a.data)},this,b)},this);this._overridePush(this.globalConfig.get("dataLayer"))},waitPool:[],destruct:function(){this.frameConnector&&this.frameConnector.destruct&&(this.frameConnector.destruct(),this._send=function(){}, this.waitPool=[],this.onCookies=function(){});k.clearTimeout(this.overrideTimeout)},onCookies:function(a,b){this.waitPool.push({fn:a,ctx:b,args:[].slice.call(arguments,2)})},initUserLayer:function(){var a="customArr";k.arrayEvery(this.waitPool,function(a){a.fn.apply(a.ctx,a.args);return 1});this.onCookies=function(a,c){a.apply(c,[].slice.call(arguments,2))};if(this.prefsEcommerce||this.prefsUseDataLayer)this._overridePush(this.prefsEcommerce)||(k.isString(this.prefsEcommerce)&&(this.dataLayerName= this.prefsEcommerce),a=this.dataLayerName,this._tryTimeout=k.bind(this._tryTimeout,this),this._tryTimeout()),this.counter._ecommerce=a},_overridePush:function(a){if(a&&"function"==typeof a.push){var b=this;b._send(a);var c=a.push;a.push=function(){var a=c.apply(this,arguments);b._send([].slice.call(arguments,0));return a};return!0}return!1},_tryTimeout:function(){this._overridePush(n[this.dataLayerName])||(this.overrideTimeout=k.setTimeout(this._tryTimeout,1E3,"dlObserver"))},_callHandlers:function(a){k.arrayEvery(Ja.handlers, function(b){b&&b.type&&k.arrayEvery(b.type.split(","),function(c){c.replace(" ","")===a.type&&b.callback&&b.callback(a);return 1});return 1})},allowedEvents:"currencyCode add delete remove purchase checkout detail".split(" "),_convert:function(a,b){var c=k.keys(b),d=!1,f={transaction_id:"id",value:"revenue"};if(b.items){var l={};l[a]={products:b.items};1g?0:gk?0:kh?h:m>q?m:q)-q)*((p>e?e:p>r?p:r)-r)&&v.push({top:k,left:g,width:n,height:f,provider:d.provider})});return{page:{width:h,height:e},window:{top:a,left:b,width:n.innerWidth,height:n.innerHeight},ads:v}}},5:function(a, b,c){b.__esModule=!0;b.getParentFriendlyIFrames=function(a){for(var b=[];;)try{if(a=a.ownerDocument.defaultView.frameElement)b.push(a);else return b}catch(l){return b}}},6:function(a,b,c){function d(a){return m.listToArray(a.document.getElementsByTagName("iframe")).filter(function(a){if(g.isSafari)return!1;try{return a.contentWindow.document}catch(q){return!1}}).map(function(a){return a.contentWindow})}function f(a,b){var c={window:a,children:[],parent:b};c.children=d(a).map(function(a){return f(a, c)});return c}function k(a,b){b(a);a.children.forEach(function(a){return k(a,b)})}b.__esModule=!0;var g=c(7),m=c(0);b.getFrienlyWindowsTree=f;b.windowsTreeEach=k},7:function(a,b,c){b.__esModule=!0;a=c(8);b.isSafari=a.isSafari()},8:function(a,b,c){b.__esModule=!0;b.isSafari=function(){var a=navigator.userAgent.toLowerCase();return-1!==a.indexOf("safari")&&-1===a.indexOf("chrome")&&-1===a.indexOf("android")}},9:function(a,b,c){b.__esModule=!0;var d=c(0),f=c(1);b.getAdsInWindow=function(a,b){function c(a, b){b.forEach(function(b){e.push({provider:a,element:b})})}var g=b.isInIFrame,k=a.document.body,l=d.listToArray(k.querySelectorAll("img")),n=d.listToArray(k.querySelectorAll("iframe")),p=d.listToArray(k.querySelectorAll("script")),h=d.listToArray(k.querySelectorAll("div")),e=[],t=[],w=d.listToArray(k.querySelectorAll("yatag")),v=d.listToArray(k.querySelectorAll("yatag yatag"));c("yandex",w.filter(function(a){return-1===v.indexOf(a)}));c("adriver",n.filter(function(a){return(a=a.src)&&-1=b;b++){var l=k.arrayIndexOf(f,this.spliter);-1!==l?c.push(f.substring(0,l)):c.push(f);f=f.substring(l+1)}b=c.splice(1,3);if((d=d.data)&&d.type&&this.handlers[d.type]&&"0"===b[this.DIR_INDEX]){if(!d.toCounter||d.toCounter==this.counterId){try{a.source}catch(g){return}d.counterId&&this.checkFrame(a.source)&&(l=this.trigger(d.type,a,d),a.source.postMessage(this.genMessage(l, [b[0],b[1],d.counterId]).string,"*"))}}else b[this.DIR_INDEX]==this.counterId&&k.isArray(d)&&k.arrayEvery(d,function(a){return a.counterId&&a.hid})&&(a=this.pending[[b[0],b[1]].join(this.spliter)])&&a.apply(this,d)}}}),L=I(),gb=y.getTimezone(),hb=y.getTimestamp(),ka=n.screen,Yb=64,lb=v.isIE()?512:2048,Zb=v.isIE()?512:2048,zb=v.isIE()?100:400,Gb=100,kb="noindex",Mb=/\.(3gp|7z|aac|ac3|acs|ai|avi|ape|apk|asf|bmp|bz2|cab|cdr|crc32|css|csv|cue|divx|dmg|djvu?|doc(x|m|b)?|emf|eps|exe|flac?|flv|iso|swf|gif|t?gz|jpe?g?|js|m3u8?|m4a|mp(3|4|e?g?)|m4v|md5|mkv|mov|msi|ods|og(g|m|v)|psd|rar|rss|rtf|sea|sfv|sit|sha1|svg|tar|tif?f|torrent|ts|txt|vob|wave?|wma|wmv|wmf|webm|ppt(x|m|b)?|xls(x|m|b)?|pdf|phps|png|xpi|g?zip)$/i, oc=+new Date,oa="Metrika",qb,bb,Fa=function(){return"1795"}();D.init().setSafe("counters",{}).setSafe("hitParam",{}).setSafe("counterNum",0).setSafe("dataLayer",[]).setSafe("hitId",k.random(1,1073741824)).setSafe("_globalMetrikaHitId",k.random()).setSafe("v",Fa);Ea.globalConfig=D;oa="Metrika2";n.Ya[oa]=function(a,b,c,d){var f=this;return F(function(){function l(a){var b=t.referrer||"",c,d;if((new RegExp("^https?://"+L.host+"/")).test(b))return!1;var e=a.patterns;for(c=0;cc&&(c=0);p=k.setTimeout(function(){q=!0;e(!1);a()},c,"trackUserTime")}}function d(){g||(f=!0,h=!1,g=!0,c())}function e(a){var b;for(b=0;bMath.random())&&B(function(){f.notBounce()},b)}}function A(a){var b=function(){var a=I().hash.split("#")[1];if("undefined"==typeof a)return!1;var b=a.indexOf("?");0=a))){var c={1882689622:1,2318205080:1,3115871109:1,3604875100:1,339366994:1,2890452365:1,849340123:1,173872646:1,2343947156:1,655012937:1,1996539654:1,2065498185:1,823651274:1,12282461:1,1555719328:1,1417229093:1,138396985:1},d=performance.getEntries(),e={},f={},g={},h={},l;b&&(g.counterId=51533966);for(l=0;l